Page MenuHomePhabricator

Add filesize and filetype to the Commons search API
Closed, ResolvedPublic

Description

We should add 'filetype:bitmap|drawing filew:>639 fileh:>639 ' as part of the query string when searching images in Commons to pre-filter images of the wrong type or too small.

Event Timeline

Change 814802 had a related patch set uploaded (by Huei Tan; author: Huei Tan):

[mediawiki/extensions/Wikistories@master] Add filesize and filetype to the Commons search API

https://gerrit.wikimedia.org/r/814802

Change 814802 merged by jenkins-bot:

[mediawiki/extensions/Wikistories@master] Add filesize and filetype to the Commons search API

https://gerrit.wikimedia.org/r/814802

SBisson triaged this task as Medium priority.Jul 21 2022, 2:19 PM

This is there now:

image.png (1×2 px, 2 MB)

There are no regressions on the image search functionality.