| Summary: | Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile | ||
|---|---|---|---|
| Product: | [Applications] krita | Reporter: | Alberto Mattea <alberto> |
| Component: | General | Assignee: | Krita Bugs <krita-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | minor | CC: | halla |
| Priority: | NOR | ||
| Version First Reported In: | 5.1.5 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | AdobeRGB Photo without embedded profile | ||
|
Description
Alberto Mattea
2023-05-14 21:32:25 UTC
Could you please make an image like that available? Created attachment 159808 [details]
AdobeRGB Photo without embedded profile
Here's a picture taken with a Fujifilm X-T4 in AdobeRGB mode (straight out of camera, untouched). Krita treats it as sRGB.
Thanks! From the looks of it, krita doesn't even see that string, I cannot find it in the metadata dialog. Of course, even if krita didn't see it, it still wouldn't select the adobe rgb profile, so I can confirm this bug. If I dump all the exiv data Krita gets, I see Name: "ColorSpace" Qualified name: "exif:ColorSpace" Value: Variant: QVariant(int, 65535) If I check GIMP, I see Exif.Photo.ColorSpace: Adobe RGB So, to start with, there's something weird going on in Krita... While exiftool gives Interoperability Index : R03 - DCF option file (Adobe RGB) ImageMagick shows nothing related... And digikam's showfoto has Color Space:Uncalibrated This seems interesting: https://forum.affinity.serif.com/index.php?/topic/33729-what-is-going-on-with-the-exif-color-space-values/&do=findComment&comment=166753 (sorry for spamming, I'm making notes here as I investigate. But looks like we _do_ get a value of -65535. There's no int: 2 anywhere in the log dump.) Following https://ninedegreesbelow.com/photography/embedded-color-space-information.html halla@thinkstations:~$ exiftool -a -S -G0 -ColorSpace -InteropIndex -WhitePoint -PrimaryChromaticities -Gamma -ICC_Profile:all _DSF5485.JPG [EXIF] ColorSpace: Uncalibrated [EXIF] InteropIndex: R03 - DCF option file (Adobe RGB) [EXIF] WhitePoint: 0.313 0.329 [EXIF] PrimaryChromaticities: 0.64 0.33 0.21 0.71 0.15 0.06 [EXIF] Gamma: 2.2 So, it looks like ColorSpace really is not set to '2' -- Adobe RGB. as noted in the Affinity thread. Gimp must be faking that. And as for InteropIndex, Krita logs: krita(1091750)/(default) KisExifIO::loadFrom: Unknown exif tag, cannot load: Exif.Iop.InteroperabilityIndex krita(1091750)/(default) KisExifIO::loadFrom: Unknown exif tag, cannot load: Exif.Iop.InteroperabilityVersion (In reply to Halla Rempt from comment #9) > Following > https://ninedegreesbelow.com/photography/embedded-color-space-information. > html > > halla@thinkstations:~$ exiftool -a -S -G0 -ColorSpace -InteropIndex > -WhitePoint -PrimaryChromaticities -Gamma -ICC_Profile:all _DSF5485.JPG > [EXIF] ColorSpace: Uncalibrated > [EXIF] InteropIndex: R03 - DCF option file (Adobe RGB) > [EXIF] WhitePoint: 0.313 0.329 > [EXIF] PrimaryChromaticities: 0.64 0.33 0.21 0.71 0.15 0.06 > [EXIF] Gamma: 2.2 > > So, it looks like ColorSpace really is not set to '2' -- Adobe RGB. as noted > in the Affinity thread. Gimp must be faking that. > > And as for InteropIndex, Krita logs: > > krita(1091750)/(default) KisExifIO::loadFrom: Unknown exif tag, cannot load: > Exif.Iop.InteroperabilityIndex > krita(1091750)/(default) KisExifIO::loadFrom: Unknown exif tag, cannot load: > Exif.Iop.InteroperabilityVersion Yeah, as far as I know a ColorSpace value of 2 for AdobeRGB is not actually in the exif standard, so many cameras just set it to "uncalibrated" and use the Interoperability Index instead. Note that as part of my experiments I also tried setting ColorSpace to 2 (without embedding the icc profile) and krita still treated it as sRGB Yes -- because it's not part of the standard, so we don't take it into account. And for the rest of the tags, anything that we didn't know about in 2007, and anything that's a bit custom (like all the fujifilm tags) is skipped. It was never a big problem because working with camera images hasn't been the main goal of Krita for ages. But since it's there, we really need to figure out how to fix this properly. |