Some Jpeg images not displaying correctly Topic is solved

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
modball

Some Jpeg images not displaying correctly

Unread post by modball » 2018-03-24, 20:25

Some jpeg images are not displaying colors correctly in Pale Moon.

Example: https://en.wikipedia.org/wiki/Citron.

The first image of the citron displays as it should:
Image

The second image (scroll down) has color display issues:
Image

Here is the same image as displayed in Firefox ESR 52.7.2:
Image

The Color profile of the image with issues is TIFF RGB.
Image

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some Jpeg images not displaying correctly

Unread post by Moonchild » 2018-03-24, 23:13

You need to make sure you have a local color profile that actually matches your display if you want to see color-corrected images.

The simplest way in Windows to correct this is to use the "calibrate color" wizard in your display properties. If you have an incorrect or unset color profile, you can end up with incorrect colors in images that have a color profile embedded.

The "explanation" in your last screenshot is actually incomplete. If embedded profiles are ignored, then you will see an uncorrected image (often with slightly different colors but not too far removed from the intended color). If embedded profiles are not ignored but your color calibration isn't set or unknown/wrong, then your colors may be wildly wrong (as you have seen). Only if you have a profile AND the embedded color information is used, you will see the proper image as-intended by the photographer.

When calibrated, the image will display properly in Pale Moon:
Image1.jpg
Last edited by Moonchild on 2018-03-24, 23:16, edited 1 time in total.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

modball

Re: Some Jpeg images not displaying correctly

Unread post by modball » 2018-03-27, 20:09

If this were a color profile issue, then both Firefox and Chrome would also display the image incorrectly, wouldn't they?

I have the correct color profile set for my monitors:
Image

and re-ran calibration but see no significant changes.

*edit: I tried ticking "use my settings for this device" but no change. Installed palemoon on Ubuntu (same machine) and the photo displays normally.

**edit: You were correct, Overriding the Samsung profile with the calibrated profile has cleared this up. Strange it was only present in Pale Moon, that I have noticed. Thanks for fixing this "non-bug" for me!
Last edited by modball on 2018-03-27, 20:45, edited 2 times in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35473
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Some Jpeg images not displaying correctly

Unread post by Moonchild » 2018-03-28, 07:55

modball wrote:If this were a color profile issue, then both Firefox and Chrome would also display the image incorrectly, wouldn't they?
No, because Firefox I believe still doesn't do ICCv4 to this day, and I'm not sure if Chrome does any color profiling at all, probably not.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

modball

Re: Some Jpeg images not displaying correctly

Unread post by modball » 2018-04-01, 00:43

Moonchild wrote:No, because Firefox I believe still doesn't do ICCv4 to this day, and I'm not sure if Chrome does any color profiling at all, probably not.
Ah, makes sense now, thanks again!

Locked