[Libreoffice-bugs] [Bug 132658] ENHANCEMENT: Image without resolution set should get a default fallback resolution (not based on a screen resolution)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue May 5 18:19:14 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132658

--- Comment #16 from Dirk Munk <munk at home.nl> ---
Let me start with a general remark. If you want to insert an image in a text
document, then it is very wise to prepare that image in image editing software
(Photoshop etc.), to give it the dimensions and resolution (in dpi) that you
want. That way, you can insert the image as-is, and you don’t have to use
Writer to modify its properties. I recommend Affinity Photo for this purpose,
it is cheap, and functionally comparable to Photoshop. You also get free
updates.

Back to the problem. An image has a size in pixels, but not in cm or inch. The
dpi setting in the Exif header will tell software like writer how big the image
should be in the document. This dpi setting is just a kind of comment,
comparable to your name in the header as copy right holder. If you change the
dpi setting, the size of the image on the page will change obviously, but (and
this is important) nothing is done (or should be done) to the image itself.

Often the dpi setting in the Exif header is 72 or 96 dpi, camera’s will add
that setting. It is a rather silly setting. Now, what should happen if you
insert a picture that would be to big for the page, let’s say that with the dpi
setting in the header, it would be 20 inch of 50 cm wide on a page with 17 cm
between the left and right margin. Should Writer keep the dpi setting, and
reduce the number of pixels in the image to get the image fitting between the
margins? NO, NO, NO !! Writer should change the dpi setting, and leave the
image itself untouched. 

Further manipulations with the size (in inch or cm) of the image on the page,
should also just change the dpi setting. When you’re finished with these
manipulations, then you should have a look at the resulting dpi setting. Let’s
say it is 1000, that is a rather silly dpi setting for a printable page. Then
you can reduce it to 300 dpi (for instance), and Writer will recalculate the
number of pixels and actually change the number of pixels.

What if an image has no dpi setting in the header? Simple, let Writer fit it
between the margins, and let it calculate a dpi setting. Remember, the dpi
setting is just comment in the Exif header. Then adjust the size of the
picture, and when you’re done give it the dpi setting you require and let
Writer recalculate the pixels. 

In other words, I don’t think adding ‘just’ a dpi setting of for instance 200
dpi is the best solution for your problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200505/e1653a7d/attachment.htm>


More information about the Libreoffice-bugs mailing list