Last modified: 2013-02-27 17:58:09 UTC
Now there are $wgmaxUploadSize to limit the maximum image size. Why don't add a $wgminUploadSize to limit the minimum image size? Lots of user in my wiki upload low resolution image from the internet. Minimum image size limitation will be extremely useful.
Note low resolution doesn't necessarily mean a small image. You're wanting a minimum file size, in bytes? Noting we also have $wgMaxImageArea which is a MP limit.
Oh oh, Sorry my bad. I mean $wgMinImageArea. Image less than 40000 pixels are not allowed.
Im not a fan of this idea. Seems like there are occasionally exceptions where the image should be small or there is no big version. Having a min size doesnt mean people wont upload low rez images. They could artificial upscale it which is worse. Its probably better to use social not technical means to enforce no low rez imsges rules.
I agree with Brian. Highly suggest WONTFIX.
You might be able to hack up the AbuseFilter extension (<https://www.mediawiki.org/wiki/Extension:AbuseFilter>) to support this. Or even hack up the upload-related PHP code (grep "wgMaxImageArea" and add your own variable) or write your own MediaWiki extension. I don't think this is something we want in MediaWiki core now or in the future, though. There are plenty of reasons you might want to upload small images (for example, icons). The "upload" user right can be restricted within MediaWiki as necessary and appropriate for your wiki. Marking this bug resolved/wontfix.