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

I did it this way because you still need all the logic that's in the resample function regarding jpg, renaming etc.. By just saying 'yes I want to resample', that code is being run automatically, and we wont have to take it out of upload_checksize() into its own function to bypass code duplication. And we need the upload_checksize() for images < 1600 anyways.