Why colors change after saving an image as Jpg?

Corel Paint Shop Pro

Moderator: Kathy_9

Post Reply
ilgk48
Posts: 63
Joined: Sun Apr 28, 2019 12:26 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PaintShop PRO 2019 32bit

Why colors change after saving an image as Jpg?

Post by ilgk48 »

Hi to all,
the question is simple anf direct:

I have an image (a simple square box) filled with RGB(255,0,0), to say completely red.
The color space is sRGB.
I save it as jpg with this options:
Immagine 2021-03-03 100608.png
I do not run Optimizer

Now I reopen it (the dialog box says the ICC is none ... boh!):
Immagine 2021-03-03 100807.png
I look at it and PSP says that the color is (254,0,0)!!

Please, why and there occurs this transformation? I did some test without any result.
Thank you.

PS. In 2015 there was a post "JPEG Optimizer Removes Embedded sRGB Color Profile" that in some way is related to my question: at that time the author seemed disappointed with PSP.
Jean-Luc
Advisor
Posts: 2177
Joined: Sat Oct 22, 2011 10:50 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
motherboard: ASUS Computer N751J
processor: Intel i7_4710 HQ 2_50GHz
ram: 16GB
Video Card: NVIDIA GeForce GTX 850M
sound_card: NVIDIA High Definition Audio
Hard_Drive_Capacity: 2 Tb
Monitor/Display Make & Model: NVIDIA GeForce GTX 850M
Corel programs: PSP X7, X9, 2018 to 2023
Location: Belgium (French speaking)
Contact:

Re: Why colors change after saving an image as Jpg?

Post by Jean-Luc »

It is perhaps the normal behaviour of the JPG compression algorithm which is a lossy format.

If you do the same manipulation in Windows Paint, you will get the same 254 0 0 result when saving in JPG.

In Painter Essentials 7, when saving in JPG with sRGB IEC61966-2-1 black scaled profile incorporated, I get 255 0 0. When saving without this profile, I get 254 0 0.

Saving with PSP in PNG format gives always 255 0 0.
THE PAINTSHOP PRO COOKBOOK - GENEALOGY WITH PAINTSHOP PRO
Installed PSP Ultimate: X7, X9, 2018, 2019, 2020, 2021, 2022, 2023
ilgk48
Posts: 63
Joined: Sun Apr 28, 2019 12:26 pm
operating_system: Windows 10
System_Drive: C
32bit or 64bit: 64 Bit
Corel programs: PaintShop PRO 2019 32bit

Re: Why colors change after saving an image as Jpg?

Post by ilgk48 »

Thank you very much, Jean Luc.
I'm thinking to use PNG from now :-)
Post Reply