Bug 155521 - Resolution metadata not stored when exporting PNG
Summary: Resolution metadata not stored when exporting PNG
Status: RESOLVED DUPLICATE of bug 132959
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-27 10:35 UTC by jose.velez
Modified: 2023-07-19 15:18 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jose.velez 2023-05-27 10:35:53 UTC
Description:
If you export a document, draw or slide to PNG the metadata corresponding to the resolution information is not stored in the generated PNG.

Steps to Reproduce:
1.Open a empty document in writer
2.Select File/Export and select PNG in Filter
3.In the dialog that appear, select modify resolution radio button and set to 400 pixels/inch and press OK
4.Open the generated PNG with Gimp and test the metadata by Image/Metadata menu.

Actual Results:
Always return 300 

Expected Results:
The specified value of 400


Reproducible: Always


User Profile Reset: No

Additional Info:
If you export to JPG the resolution information is stored correctly, so there are something wrong in the PNG export process.
Comment 1 raal 2023-05-27 16:51:37 UTC
Confirm with Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 578758835e700b38b167753ccda9527f3a8cc43b
CPU threads: 4; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Version: 4.1.0.0.alpha1+
Build ID: a2c9d4f8bbde97f175bae4df771273a61251f40
Comment 2 Stéphane Guillou (stragu) 2023-07-19 15:18:02 UTC
The code responsible for writing metadata on PNG export / save / compress likely being the same, I am consolidating these "wrong or missing DPI metadata" issues into one.

*** This bug has been marked as a duplicate of bug 132959 ***