Bug 406974 - PNG file resolution (ppi) is wrong
Summary: PNG file resolution (ppi) is wrong
Status: RESOLVED NOT A BUG
Alias: None
Product: krita
Classification: Applications
Component: File formats (show other bugs)
Version: git master (please specify the git hash!)
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-27 16:05 UTC by Alvin Wong
Modified: 2019-04-27 18:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvin Wong 2019-04-27 16:05:40 UTC
SUMMARY

PNG files opened in Krita ends up with wrong resolution.

STEPS TO REPRODUCE
1. Create a 256x256px image at 96ppi in Krita
2. Export image as png
3. Open the exported image
4. Open Image->Properties

OBSERVED RESULT
- Resolution shows 95.986434ppi

EXPECTED RESULT
- Resolution should show 96ppi


SOFTWARE/OS VERSIONS
Windows: Windows 10

ADDITIONAL INFORMATION
Comment 1 Alvin Wong 2019-04-27 18:00:15 UTC
PNG stores resolution in px/metre so there are always going to be rounding errors...