Wikimedia
WikidataPageBanner when using page images generated API renders badly cropped images
WikidataPageBanner extension was made to display page wide panoramic banners on articles. Now these banners are used as lead images on mobile version, by the MobileFrontend extension.
Sometimes, the lead images are not of proper dimension, i.e width to height ration, and the stretched banner looks bad.
It's best to ignore the banner in that case.
Guidelines: a) identify the image aspect ratio under which to ignore the banner. b) Find out the best place to implement ignoring of banner and implement it.
Please read https://phabricator.wikimedia.org/T131424 for more details and ask in the Phabricator task if something is unclear!
Task tags
Students who completed this task
David Sn