Bug 406974

Summary: PNG file resolution (ppi) is wrong
Product: [Applications] krita Reporter: Alvin Wong <alvin>
Component: File formatsAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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...