Page 1 of 1

Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed May 13, 2015 4:40 pm
by sirtet
This JPG image is shown in XnView with a greenish label, where the real bottle is grey...

System Preview on win7 64bit shows the colors correctly.
The system info says it's a 32bpp image, xnview (2.32 AND MP 0.72) see a 24bit image, and distort the colors. See screenshots:
win-preview-32bit-jpg.jpg
xnview-32bit-jpg.jpg
And the offending file here:
McNett-mirazyme.jpg
Interestingly, chrome, FF, Opera AND IE also render a greenish label...

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed May 13, 2015 5:00 pm
by XnTriq
You have to activate Use ICC Embedded Profile (JPEG/TIFF) - Very slow in Tools » Options... » General » ICC.
XnView will tell you that “This picture will be converted to RGB with 8bits per component.”

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Thu May 21, 2015 3:49 pm
by sirtet
Thanks, yes.
But since this is something rather obscure to most users, couldn't / shouldn't xnview at least inform the user that he'd need to switch to a different type of displaying?
It's really easy to oversee in some pictures.

If it would be a performance drawback, there should be at least a hint that the image is/may be displaying incorrect.
I think correctness still goes over speed for most users...
If windows can do it, so should xnview...

maybe xnview could first load with it's own profile for speed, and then while displaying check if the embedded profile is different?

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Thu May 21, 2015 9:30 pm
by XnTriq
Has ICC profile (Tools » Options... » Thumbnails » Icon info » File info) is activated by default. This tells XnView's browser to display a small icon next to the thumbnail if an image contains a profile.

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Fri Apr 01, 2016 1:45 pm
by sirtet
XnTriq wrote:Has ICC profile (Tools » Options... » Thumbnails » Icon info » File info) is activated by default. This tells XnView's browser to display a small icon next to the thumbnail if an image contains a profile.
Ok, but directly opening the image, i get no clue that there is an embedded profile, currently not used by the viewer, and that this makes the image display incorrectly.
I still think XnView should give a warning at least.
Can this be moved to the bugs forum, or does it need to be reposted there?

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Fri Apr 01, 2016 2:17 pm
by xnview
it's not a bug, by default CMYK are converted in RGB, but if you have an ICC profile, it must be used

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed Apr 20, 2016 12:44 pm
by raauw
Hi guys. I've got a similar problem. Or so I think. When I've got a cmyk .jpg. Xnconvert converts some colors to a fluo kind color. it's way to saturated. How do I fix this? I've been cruising this forum for a good half an hour now and am afraid it's just too much to comprehend. Image.
For the moment I fix these pictures by running them through PS and 'saving for web' before I rerun them through Xnconvert.
offcourse it would be much easier if this could be implemented in XNconvert. Is this something ICC could fix? But since I'm pretty sure the default is saving files as "sRGB" I think this is what we're looking for anyways? So my guess is there's something wrong with the way XNconvert converts colors to "sRGB" and PS is doing this right and so when I first run them through PS, XNconvert doesn't need to convert to "sRGB"? I'm lost. Could you guys help me or give me a tip?

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed Apr 20, 2016 1:18 pm
by xnview
could you post the original picture?

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed Apr 20, 2016 2:56 pm
by raauw
Yes...
https://drive.google.com/open?id=0B_3Ei ... GtxdTFzZU0
This should be it.

Photoshop tells me at image/mode it's cmyk color, 8 bits channel

in XNconvert my action is. adjust size. Mode longest side; 550 pixels; only make smaller; lanczos.

output
JPG - JPEG / JFIF
save metadata.

Sorry if some translations aren't quite up to scratch on the technical things. I hope you can reproduce my problem never the less.

Thanks for the quick reply.

I just noticed Tinypic has the same color problem :D as you might see via the following link http://i67.tinypic.com/2elz8sw.jpg

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Thu Apr 21, 2016 6:51 am
by xnview
raauw wrote:Yes...
https://drive.google.com/open?id=0B_3Ei ... GtxdTFzZU0
This should be it.
ok, i'll check...

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Thu Apr 21, 2016 7:17 am
by raauw
thanks!

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Wed Apr 12, 2017 12:45 pm
by xnview
raauw wrote:thanks!
To be able to convert correctly this CMYK image, you need to use a CMYK default color profile like this one
cmyk.zip
(408.33 KiB) Downloaded 367 times

Re: Wrong colors: 32bpp jpg gets interpreted as 24bpp

Posted: Sat Apr 22, 2017 11:30 am
by XnTriq
xnview wrote:To be able to convert correctly this CMYK image, you need to use a CMYK default color profile like this one
Image cmyk.zip
Works as expected in XnView v2.40 (Little CMS v2.8) =D