No DPI setting written when compressing an image to PNG
Steps to Reproduce:
1. Open attachment 1606952
2. Format -> Image -> Compress. Pick 300 DPI for both images
3. Save the file
4. Rename the file to zip. Open it. Open the image in Irfan view -> notice missing DPI
No DPI written
Should be so
User Profile Reset: No
Version: 126.96.36.199.alpha0+ (x64)
Build ID: 97a2c1fc5e376c0c00968f17a0392c6d3a5ed565
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win;
Locale: nl-NL (nl_NL); UI-Language: en-US
Also in 188.8.131.52
Same happens for "Save" from context menu.
Should we save the dpi ?
I mean the dpi has a meaning when we're compressing the image, depending on its dimensions when LO achieves the compression.
However, later the image dimensions into the document can change but the dpi into that image won't be coherent.
(In reply to Jérôme from comment #3)
The number of pixels won't change by setting a DPI value into the PNG.. The image only gets file dimensions based on the DPI setting.
The image can change in size indeed, downsizing would increase the actual DPI. Enlarging decrease the actual DPI based on the file settings.. However.. factual nothing changes.. everything is the same pixel wise.
But yes the whole pixel/dpi matter is quite confusing.. Even more if we take screen resolution in account..
But he, not an expert on dimensions/dpi. Expect images without resolution get different dimensions depending on screen resolution. And even messes with crop (see some bugs in Image-DPI meta bug)