Skip to main content
Participating Frequently
February 22, 2023
Answered

png and jpgs with different RGB make-up

  • February 22, 2023
  • 1 reply
  • 3188 views

After designing a logo for a client in putting together various format, I am finding that the rgb make-up of the png and jpg formats differ. Should this be the case?

This topic has been closed for replies.
Correct answer D Fosse

What Kevin is getting at, is that numbers are dependent on the color space used. The same visual color will yield different numbers in sRGB, Adobe RGB, ProPhoto etc."RGB" is not a color space, just a generic color mode.

 

If there is an embedded color profile in the file, that defines the colors. Numbers withut a specified color space are undefined.

 

All that said, one single digit up or down sounds much more like the result of jpeg compression. The jpeg algorithm compresses the color component much more aggressively than the luminance component, and this variation in numbers is a side effect of the compression. If you need absolutely accurate numbers, don't use jpeg.

 

Jpeg compression is destructive, non-reversible and cumulative.

 

EDIT cross post

1 reply

Kevin Stohlmeyer
Community Expert
Community Expert
February 22, 2023

What color profiles are attached to the two files?

Participating Frequently
February 22, 2023

they are both rgb, but differ slightly.

png 26, 88, 167

jpg 27, 88, 168

Kevin Stohlmeyer
Community Expert
Community Expert
February 22, 2023

Sorry @jean DeBenedictis  I meant the specific color profile - is one Adobe RGB and another sRGB?

You can check by going into each file and choosing Edit>Convert to Profile - what does the Source say on each?