[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #11 from Halla Rempt  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Alberto Mattea
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #10 from Alberto Mattea  ---
(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

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

Halla Rempt  changed:

   What|Removed |Added

 Status|ASSIGNED|CONFIRMED
   Assignee|ha...@valdyas.org   |krita-bugs-n...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

Halla Rempt  changed:

   What|Removed |Added

   Assignee|krita-bugs-n...@kde.org |ha...@valdyas.org
 Status|CONFIRMED   |ASSIGNED

--- Comment #9 from Halla Rempt  ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #8 from Halla Rempt  ---
This seems interesting:
https://forum.affinity.serif.com/index.php?/topic/33729-what-is-going-on-with-the-exif-color-space-values/=findComment=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.)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #7 from Halla Rempt  ---
ImageMagick shows nothing related... And digikam's showfoto has Color
Space:Uncalibrated

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #6 from Halla Rempt  ---
While exiftool gives

Interoperability Index  : R03 - DCF option file (Adobe RGB)

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-22 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #5 from Halla Rempt  ---
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...

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-21 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

Halla Rempt  changed:

   What|Removed |Added

 Status|REPORTED|CONFIRMED
 Ever confirmed|0   |1

--- Comment #4 from Halla Rempt  ---
>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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-21 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

Halla Rempt  changed:

   What|Removed |Added

 Status|NEEDSINFO   |REPORTED
 Resolution|WAITINGFORINFO  |---

--- Comment #3 from Halla Rempt  ---
Thanks!

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-21 Thread Alberto Mattea
https://bugs.kde.org/show_bug.cgi?id=469766

--- Comment #2 from Alberto Mattea  ---
Created attachment 159808
  --> https://bugs.kde.org/attachment.cgi?id=159808=edit
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

[krita] [Bug 469766] Krita doesn't recognize Adobe RGB JPG photo without embedded icc profile

2023-06-21 Thread Halla Rempt
https://bugs.kde.org/show_bug.cgi?id=469766

Halla Rempt  changed:

   What|Removed |Added

 CC||ha...@valdyas.org
 Resolution|--- |WAITINGFORINFO
 Status|REPORTED|NEEDSINFO
   Severity|normal  |minor

--- Comment #1 from Halla Rempt  ---
Could you please make an image like that available?

-- 
You are receiving this mail because:
You are watching all bug changes.