# 移动设备上的头像显示更暗

**URL:** <https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874>\
**Category:** Support\
**Created:** [2016年三月10日 20:54 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874 "2016-03-10T20:54:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2016年三月10日 20:54 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874/1 "2016-03-10T20:54:59Z")

</div>

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

> ![](https://global.discourse-cdn.com/meta/original/3X/e/6/e61643cefa694e149d5b2d8e2fc747e362396693.png)

**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?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年三月10日 23:05 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874/2 "2016-03-10T23:05:31Z")

</div>

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](https://meta.discourse.org/t/discourse-greyscale-jpg-avatar-processing-adds-darkness/17993)

---

<div class="post-metadata">

**Author:** ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)\
**Post date:** [2016年三月10日 23:12 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874/3 "2016-03-10T23:12:24Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2016年三月10日 23:13 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874/4 "2016-03-10T23:13:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2024年六月8日 12:45 UTC](https://meta.discourse.org/t/profile-image-appears-darker-on-mobile/40874/5 "2024-06-08T12:45:50Z")

</div>

此主题已在 3011 天后自动关闭。不再允许回复。
