corbosman/this-might-be-offensive — comment on commit 6b2ce5cc8f2c93fbdfdb0ed39334fb66d9a49505
File: offensive/assets/upload.inc line 736
By numist:

We can set `$postdata['noresample']` here since we're resampling anyway as part of the resize—I imagine Imagick uses a sane default for quality if the image happens to be a JPEG. The resample path converts images to JPEG and I'd like to avoid that if it's not necessary.

The only reason a file should still be unacceptably large after the resize step is if it's the wrong format for the data within (template vs wavelet), is this a problem we care about or are likely to encounter at the > 1600^2px scale?