# Uploaded Emoji are a bit desaturated?

**URL:** <https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759>\
**Category:** Bug\
**Created:** [2015年三月25日 10:52 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759 "2015-03-25T10:52:11Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)\
**Post date:** [2015年三月25日 10:52 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/1 "2015-03-25T10:52:11Z")

</div>

Hi guys. I tried to upload a new emoji but both size and colors seemed to be a bit off. So i tried the following:

- downloaded an existing emoji (that is bundled into Discourse)
- tried to re-upload

After that, i opened both images in new tabs (so there is no css involved) and I have this result:

![](https://global.discourse-cdn.com/meta/original/3X/c/c/cc84873ad7e859c60c7650b3ababa6888e4090cb.jpg)

(left image is the uploaded one)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年三月25日 16:39 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/2 "2015-03-25T16:39:35Z")

</div>

We [downsize](https://github.com/discourse/discourse/blob/master/app/jobs/regular/resize_emoji.rb#L14) uploaded emoji to make sure they fit in a `60x60` square.

Maybe one of the Image Magick option is altering the emoji?

---

<div class="post-metadata">

**Author:** ![iamntz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamntz/32/114670_2.png) [@iamntz](https://meta.discourse.org/u/iamntz)\
**Post date:** [2015年三月25日 17:09 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/3 "2015-03-25T17:09:30Z")

</div>

But… Why? Since the default (apple) emoji are 64x64 and emoji one (i think) are 74x74, it wouldn’t make more sense to have them resized to the current emoji scheme base size? 😕

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年三月25日 22:29 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/4 "2015-03-25T22:29:18Z")

</div>

This might be related to Image Magick messing up black and white images too.

Maybe Image could do with a little less Magicks

---

<div class="post-metadata">

**Author:** ![elberet](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elberet/32/122404_2.png) [@elberet](https://meta.discourse.org/u/elberet)\
**Post date:** [2015年三月25日 22:34 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/5 "2015-03-25T22:34:34Z")

</div>

What, like ImageScience? 😏

In all seriousness, tho, I’m guessing that the `-thumbnail` operation is a bad choice. It focuses filesize over everything else, and while this may be fine for actual thumbnails, it’s not desireable for emojis (which are small enough anyways).

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年三月26日 17:17 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/6 "2015-03-26T17:17:24Z")

</div>

Thanks @iamntz for reporting that issue. I updated the code so that we only downsize to `100x100` using the `resize` option instead of `thumbnail`. 🪲

[https://github.com/discourse/discourse/commit/a87083fa7641267339e06a77773601594570d0fd](https://github.com/discourse/discourse/commit/a87083fa7641267339e06a77773601594570d0fd)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2015年七月29日 21:47 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/9 "2015-07-29T21:47:34Z")

</div>

@zogstrip can you verify we don’t have any lingering issues here? Maybe upload emoji to test?

Here’s one:

![](https://global.discourse-cdn.com/meta/original/3X/f/c/fc8df8fd2a6716ebb5276345e9d33c3c5edc3c65.png)

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年八月4日 16:32 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/10 "2015-08-04T16:32:13Z")

</div>

Here’s another 2.

![](https://global.discourse-cdn.com/meta/original/3X/4/3/4382f221945f05f6d8e608a0701343abe1b5f0e2.png) ![](https://global.discourse-cdn.com/meta/original/3X/6/7/67a6e8dcaf26758ad471947cfacf6bb3c487a5cd.png)

They look fine to me.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2015年八月4日 16:32 UTC](https://meta.discourse.org/t/uploaded-emoji-are-a-bit-desaturated/26759/11 "2015-08-04T16:32:18Z")

</div>


