# Problem adding custom emojis

**URL:** <https://meta.discourse.org/t/problem-adding-custom-emojis/55057>\
**Category:** Bug\
**Created:** [January 2, 2017, 2:59pm UTC](https://meta.discourse.org/t/problem-adding-custom-emojis/55057 "2017-01-02T14:59:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Lutz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lutz/32/65103_2.png) [@Lutz](https://meta.discourse.org/u/Lutz)\
**Post date:** [January 2, 2017, 2:59pm UTC](https://meta.discourse.org/t/problem-adding-custom-emojis/55057/1 "2017-01-02T14:59:35Z")

</div>

We use custom emojis. Some of them are bigger than standard. We use the following CSS hack to display it nicely:

```plaintext
    /* Emoji Style */
    body img.emoji[title^=":_"] {
        width: initial !important;
        height: initial !important;
    }
```

This one, as example: ![](https://global.discourse-cdn.com/meta/original/3X/8/0/80fff4636ee4169a4b4959306a87c70aaf74e33a.gif) (named :\_bigboss:)

Since Beta 10 or 11 (we are on latest: v1.7.0.beta11 +38) adding new oversized emoji, generates this error:

```plaintext
    /var/www/discourse/app/models/optimized_image.rb:110:in `block in ensure_safe_paths!'
    /var/www/discourse/app/models/optimized_image.rb:109:in `each'
    /var/www/discourse/app/models/optimized_image.rb:109:in `ensure_safe_paths!'
    /var/www/discourse/app/models/optimized_image.rb:135:in `resize_instructions_animated'
    /var/www/discourse/app/models/optimized_image.rb:192:in `downsize_instructions_animated'
    /var/www/discourse/app/models/optimized_image.rb:213:in `optimize'
    /var/www/discourse/app/models/optimized_image.rb:205:in `downsize'
    /var/www/discourse/app/jobs/regular/resize_emoji.rb:14:in `execute'
    /var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'
```

  
[code]

hostname dragon-app  
process\_id 110  
application\_version [a481bf048facd5e0c9a896d52f210b450c5a3d08, d8be3e8bb10f02912107803b28a1aa08080c9f81]  
current\_db default  
job Jobs::ResizeEmoji  
problem\_db default  
opts   
path public/uploads/default/\_emoji/\_bigboss.gif  
current\_site\_id default  
[/code]

Other emjoi we added before, are still working without any problems.

---

_[View the full topic](https://meta.discourse.org/t/problem-adding-custom-emojis/55057)._
