Wrong colors: 32bpp jpg gets interpreted as 24bpp

Ask for help and post your question on how to use XnView Classic.

Moderators: XnTriq, helmut, xnview

Post Reply
sirtet
Posts: 8
Joined: Mon Feb 13, 2012 11:54 am

Wrong colors: 32bpp jpg gets interpreted as 24bpp

Post 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...
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post 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.”
sirtet
Posts: 8
Joined: Mon Feb 13, 2012 11:54 am

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

Post 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?
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post 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.
sirtet
Posts: 8
Joined: Mon Feb 13, 2012 11:54 am

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

Post 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?
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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
Pierre.
raauw
Posts: 4
Joined: Wed Apr 20, 2016 12:18 pm

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

Post 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?
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

could you post the original picture?
Pierre.
raauw
Posts: 4
Joined: Wed Apr 20, 2016 12:18 pm

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

Post 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
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

raauw wrote:Yes...
https://drive.google.com/open?id=0B_3Ei ... GtxdTFzZU0
This should be it.
ok, i'll check...
Pierre.
raauw
Posts: 4
Joined: Wed Apr 20, 2016 12:18 pm

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

Post by raauw »

thanks!
User avatar
xnview
Author of XnView
Posts: 43327
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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 359 times
Pierre.
User avatar
XnTriq
Moderator & Librarian
Posts: 6336
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

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

Post 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
Post Reply