# Discourse が外部 URL からコピーした際、Firefox のみ SVG が破損する問題

**URL:** <https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835>\
**Category:** Product Support\
**Created:** [2019 年 3 月 28 日午後 4:37 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835 "2019-03-28T16:37:57Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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:** [2019 年 4 月 1 日午前 10:57 UTC](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835/11 "2019-04-01T10:57:54Z")

</div>

FTR, here’s what I see in latest Chrome on Windows 10

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/d/ed29b2ecb19e550139258e61e11a98fbd1e0c97b.png)

Here’s what I see in latest Firefox on Windows 10

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

I [fixed the issue](https://github.com/discourse/discourse/commit/2b721dff5762da899ab455a3c7a9100adfa6ca42) by allowing `feGaussianBlur` and `filter` svg elements.

> [@awesomerobot](#):
>
> I suspect this is a bug with imagemagick (which we use to optimize images)?

We don’t optimize SVGs. We just [“whitelist”](https://github.com/discourse/discourse/blob/e986e96227adb8525eb8b99c8044fa5b8fc70856/lib/upload_creator.rb#L47) them.

---

_[View the full topic](https://meta.discourse.org/t/svg-broken-only-in-firefox-when-discourse-copies-it-from-external-url/112835)._
