Page MenuHomePhabricator

PageImage not extracted from Marge Simpson on enwiki
Closed, InvalidPublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • Marge's image is missing.

What should have happened instead?:

  • Marge's image should be listed in the PageImages API call result.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

  • Could anyone check why is this happening please?

Event Timeline

Soustruh renamed this task from Image missing from PageImages API call result. Another page with the same infobox works fine to Image missing from PageImages API call result. Another page with the same infobox template works fine.Jun 15 2022, 8:40 AM

The problem is simpler than the report makes out. It's not related to requesting multiple pages, and only getting one image, it's that there's no image for Marge - https://en.wikipedia.org/w/api.php?action=query&titles=Marge%20Simpson&prop=pageimages&format=json&pithumbsize=492&pilicense=any

It can be seen on https://en.wikipedia.org/wiki/Marge_Simpson?action=info vs https://en.wikipedia.org/wiki/Bart_Simpson?action=info so not API specific either.

PageImages just isn't picking up the image for some reason.

Screenshot 2022-06-15 at 16.55.06.png (1,314×774 px, 137 KB)

Screenshot 2022-06-15 at 16.55.00.png (1,316×378 px, 72 KB)

Reedy renamed this task from Image missing from PageImages API call result. Another page with the same infobox template works fine to PageImage not extracted from Marge Simpson on enwiki.Jun 15 2022, 3:56 PM

Hi everyone, any news on this one please?

@Soustruh: In general, in any Phabricator task, all news available can be found in the task. Thus no, no news...

https://en.wikipedia.org/wiki/File:Marge_Simpson.png has 130 × 400 pixels, i.e. a ratio of 130/400=0.325
https://en.wikipedia.org/wiki/File:Bart_Simpson_200px.png has 200 × 298 pixels, i.e. a ratio of 200/298=0.671

Dating back to https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageImages/+/112787, very wide and very high images are considered unsuitable to be used as page images.

I don't see a problem with that, but due to copyright infringement, it was possible to upload it to Commons and reposition the measurement as appropriate.

Jdlrobson-WMF subscribed.

Per @simon04 the problem here is the size of the image resulting in it being badly weighted.
https://www.mediawiki.org/wiki/Extension:PageImages#How_does_it_select_images?
We use the page image in places other than search and displaying this image would result in it being pixelated.

Please upload a larger image for this image to work.