Summary: | imported photoshop-created jpg images fail to read dpi correctly | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Daniel Cohen <analoguecolour> |
Component: | File formats | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla, raghu |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Microsoft Windows | ||
OS: | Other | ||
Latest Commit: | http://commits.kde.org/calligra/db375418cbf46a80d6638a98479813ec8f8a283d | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | example of jpg |
Description
Daniel Cohen
2015-05-11 20:31:32 UTC
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 |