Allow images higher than 100 megapixels


(Lucas Nicodemus) #1

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?


(Matt Palmer) #2

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.


(Lucas Nicodemus) #3

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) for example are huge but they’re legitimately good images and may be nice if your goal is to post very high resolution art.


(Régis Hanol) #4

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