Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Jpeg colour doesn't match website background

New Here ,
Sep 21, 2023 Sep 21, 2023

I currently have jpeg images that fade out to match a blue background of a web page. The colour isn't quite matching so there is a faint edge all around the image. It works fine as a PNG (but way bigger) can anyone help what may be going wrong? I've tried saving with and without embedded color profiles and have the doc set as sRGB. Thanks in advance.

TOPICS
Windows
280
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Sep 21, 2023 Sep 21, 2023

Always embed the profile. No exception. It's the only way to define the color.

 

If it's one or two numbers off, it's probably the jpeg compression. The jpeg algorithm compresses the color component more aggressively than the luminance component.

 

Edit: I see it matches as PNG. So yes, it's the compression.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 21, 2023 Sep 21, 2023

Thanks for the input. Is there away to counter this or is it a case of manually tweaking the colour to hopefully get a match

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 21, 2023 Sep 21, 2023

I think the compression squeezes the color into slots. So if you try to tweak, it only gets worse.

 

I'd use PNG. One single image can't impact load times all that much.

 

...or perhaps change the background?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 21, 2023 Sep 21, 2023
LATEST

Thanks again, I may end up tweaking the background. I've 3 images it's happening on - the optimised jpegs are 100-150kb each, PNG is nearer 1mb each

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines