Page MenuHomePhabricator

PageImages display the wrong image
Closed, DuplicatePublic


Pagesimages fails to find the good image in those examples :

Maybe a ratio configuration change will be enough ?
Width/height ratio :
File:Troymcclure.png : 0.53
File:Frink.png : 0.49
File:Moe_Szyslak.png : 0.55

Event Timeline

Akeron raised the priority of this task from to Medium.
Akeron updated the task description. (Show Details)
Akeron added a project: PageImages.
Akeron added a subscriber: Akeron.
Aklapper lowered the priority of this task from Medium to Low.Apr 13 2015, 9:31 AM

Another obvious example on Flag of France :
PageImage choose instead of
This is strange because the chosen image is very far from top and the English article doesn't have this problem.

PageImage is actually used on mobile version for search, try searching "Drapeau de la France" on the wrong image will be displayed in the pop-up menu.

per @dr0ptp4kt - citing T135755: Map showing as lead image on mobile app articles about certain building instead of an lead image of the actual building is another case where lead image is not showing the best image for the article.

I have noticed this is on 3 separate articles (Empire State, Flatiron and Chrysler buildings) where there is a map image as well as the intended lead image in the info box. Note this is occurring on both iOS and Android apps.

Steps to reproduce:

  1. Search for article "Empire State building" -
  2. Select to view the article. Note that the lead image is showing as the map.

Both the search result thumb img and lead image in the Empire State building article is showing a map of NYC

Simulator Screen Shot May 19, 2016, 9.50.34 PM.png (1×750 px, 197 KB)

Simulator Screen Shot May 19, 2016, 9.50.20 PM.png (1×750 px, 392 KB)

Lead image should be a photograph of the building as it is on the web.

pasted_file (580×608 px, 262 KB)

+ Another example – Henry VIII article showing supplementary image as the lead image on mobile app article view, and on Search thumbnails.

Lead image is the first image in the info box, a portrait of Henry VIII as per web view of article

pasted_file (601×1 px, 401 KB)

Search thumbnail on mobile web

pasted_file (560×930 px, 95 KB)

Lead image on iOS app

Simulator Screen Shot Jun 17, 2016, 1.49.52 PM.png (1×750 px, 196 KB)

Akeron renamed this task from Improve Pageimages image selection (ratio ?) to PageImage display the wrong image.Sep 4 2016, 12:00 PM

The problem seems related to images with a larger height compared to width :

There is a lot of example of PageImage fails with film poster :

It also can fail with image in landscape format, maybe because it is too small :

Akeron renamed this task from PageImage display the wrong image to PageImages display the wrong image.Sep 4 2016, 12:24 PM
Akeron raised the priority of this task from Low to Medium.

This bug affects a lot of articles and should be easy to fix.

The extension should always take the first image and skip only very small images or images with extreme height/width ratio.