Last modified: 2013-02-27 17:58:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47451, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45451 - Add $wgMinImageArea
Add $wgMinImageArea
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.21.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-26 22:28 UTC by zoglun
Modified: 2013-02-27 17:58 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description zoglun 2013-02-26 22:28:58 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.
Comment 1 Sam Reed (reedy) 2013-02-26 22:37:40 UTC
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.
Comment 2 zoglun 2013-02-26 22:40:10 UTC
Oh oh, Sorry my bad. I mean $wgMinImageArea.

Image less than 40000 pixels are not allowed.
Comment 3 Bawolff (Brian Wolff) 2013-02-27 00:40:59 UTC
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.
Comment 4 Chad H. 2013-02-27 17:46:29 UTC
I agree with Brian. Highly suggest WONTFIX.
Comment 5 MZMcBride 2013-02-27 17:58:09 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links