# Allow images higher than 100 megapixels

**URL:** https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753
**Category:** Feature
**Created:** [11 באפריל,‏ 2017,‏ 2:56am UTC](https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753 "2017-04-11T02:56:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nicatronTg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicatrontg/32/103643_2.png) [@nicatronTg](https://meta.discourse.org/u/nicatronTg)
#### Post date: [11 באפריל,‏ 2017,‏ 2:56am UTC](https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753/1 "2017-04-11T02:56:44Z")

</div>

Is there any reason why the admin panel limits image sizes to 100 megapixels? I have a 110 megapixel image I want to post on my Discourse install (8858x12402) but I can’t because I can’t raise the megapixel limit to 110.

Can this ceiling be removed?

---

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [11 באפריל,‏ 2017,‏ 3:39am UTC](https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753/2 "2017-04-11T03:39:44Z")

</div>

This was added as a mitigation against a denial-of-service attack in which extremely large (in dimension) but very compressible (so the file is small) images can be uploaded to cause the image processor to lose its tiny mind trying to resize the behemoth image for display. I’ll leave it up to @zogstrip to decide whether the ceiling limit can be raised without leaving a big hole.

---

<div class="post-metadata">

### Author: ![nicatronTg](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nicatrontg/32/103643_2.png) [@nicatronTg](https://meta.discourse.org/u/nicatronTg)
#### Post date: [11 באפריל,‏ 2017,‏ 3:42am UTC](https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753/3 "2017-04-11T03:42:15Z")

</div>

That makes sense, though from a site admin perspective, I should be able to at least disable that if I want to. Images like [this (sfw, but rest of site is not)](http://danbooru.donmai.us/posts/2565660) for example are _huge_ but they’re legitimately good images and may be nice if your goal is to post very high resolution art.

---

<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: [11 באפריל,‏ 2017,‏ 5:44am UTC](https://meta.discourse.org/t/allow-images-higher-than-100-megapixels/60753/4 "2017-04-11T05:44:34Z")

</div>

I guess bumping the upper limit to 150MB is fine.

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