If you take a jpg image saved in photoshop at any dpi other than 72, when opened with krita, it interprets it as 72dpi. Reproducible: Always Steps to Reproduce: 1. save 300dpi jpg in photoshop 2. load jpg into krita Actual Results: Krita fails to identify the correct DPI of 300 Expected Results: It should load the image with 300 DPI Resaving the jpg in irfanview solved the issue, presumably down to some embedded info changing type although I'm not sure what exactly.
Created attachment 92550 [details] example of jpg
Can you please attach the original PSD from which this jpg is saved. That will be helpful to the developers in determining whats happening.
There is no PSD involved in this process, this is literally a new file in doodled in photoshop saved as a jpeg with the default settings.
Hm... Photoshop does do something weird. This is where we try to get the resolution from: cinfo.X_density 1 cinfo.y_density 1 unit 0 Unit can be 1 or 2, and it is 0.
Also interesting: gimp shows the XRes and YRes as 72 as well, but the real resolution apparently is stored in the exif properties...
Curiouser and curiouser... In layer/edit metadata in Krita, we can see all the exiv and other properties, and there in the List tab, exif.PixelYDimension and exif.PixelXDimensions are set 60 600. There is also... tiff.XResolution and tiff.Yresolution, and those are set to the 3000000/10000... I guess I'd better check what gimp and imagemagick do here...
Git commit db375418cbf46a80d6638a98479813ec8f8a283d by Boudewijn Rempt. Committed on 15/05/2015 at 10:22. Pushed by rempt into branch 'calligra/2.9'. M +10 -0 krita/plugins/formats/jpeg/kis_jpeg_converter.cc http://commits.kde.org/calligra/db375418cbf46a80d6638a98479813ec8f8a283d