Profile image appears darker on mobile

AI-generated summary

The issue of profile images appearing darker on mobile devices has been reported. downey shared a comparison image showing the difference between mobile and desktop renderings. sam suggested re-uploading the avatar to resolve the issue, suspecting an old cached resized image. However, downey discovered that the issue seems to be Gravatar-related, as locally-uploaded images do not exhibit the problem. sam explained that the same code runs for resizing avatars and local images, but the issue may be due to an ancient resize with a bug, which can be problematic due to the higher DPI dimensions of mobile images.

I feel like this may have been discussed at one point, but couldn’t find it:

Mobile UI is rendering (at least some) profile images darker than on desktop.

On the left is the same profile image rendered via Chrome’s Nexus 6 emulation mode, and on the right is the “regular” desktop rendering. (And yes, it looks just as dark on a real mobile device.)

I can’t reproduce this on meta, but why would it be happening?

I think I know what this is, an old cached resized image.

Can you try re-uploading your avatar (change one pixel) and see if the issue goes away?

https://meta.discourse.org/t/discourse-greyscale-jpg-avatar-processing-adds-darkness/17993

Seems to be Gravatar related … the “same” locally-uploaded image seems to do fine. But then again, I’m using Gravatar here, same photo, but can’t repro the issue. Is there any way to clear the Gravatar cache?

Same exact code runs for resizing avatars and local images, its just that you have an ancient resize that had the bug I linked.

Keep in mind dimensions of images on mobile differ cause of higher DPI.