Bug 357312 - Gwenview 4.14.3 loses PNG DPI information when rotating images
Summary: Gwenview 4.14.3 loses PNG DPI information when rotating images
Status: RESOLVED DUPLICATE of bug 278661
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: Other (add details in bug description)
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-29 17:39 UTC by Pastafarianist
Modified: 2017-11-08 23:08 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pastafarianist 2015-12-29 17:39:15 UTC
See the original image at https://drive.google.com/file/d/0B0Jnpz9ldbuHN29mM3NJdUlWUU0/view?usp=sharing and the flipped version at https://drive.google.com/file/d/0B0Jnpz9ldbuHaUdjMkFsV3dncjQ/view?usp=sharing .

Both are PNG images. The first one is scanned. Then I copied it, opened the copy in Gwenview and rotated it twice, obtaining the second image.

I called `identify -verbose` from Imagemagick on both images. The (abbreviated) diff between the two calls is below:

1c1
< Image: image_original.png
---
> Image: image_flipped.png
6,7c6,7
<   Resolution: 118.11x118.11
<   Print size: 21.59x29.7011
---
>   Resolution: 31.89x31.5
>   Print size: 79.9624x111.365
(...)
80c80
<     png:pHYs: x_res=11811, y_res=11811, units=1
---
>     png:pHYs: x_res=3189, y_res=3150, units=1
(...)

The metadata has changed. This shouldn't have happened.

Reproducible: Always

Steps to Reproduce:
1. Open the attached image in Gwenview
2. Rotate it twice (to flip it upside-down)
3. Save the rotated copy
4. Call `identify -verbose` on both images
5. Observe the difference

Actual Results:  
The metadata has changed.

Expected Results:  
Metadata should have stayed the same.
Comment 1 Nate Graham 2017-11-08 23:08:52 UTC

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