Extension talk:PageImages
Add topicposition?
[edit]I installed this extension and could not it get it work at first, in spite of having run initImageData.php as well as runJobs.php with refreshLinks. But then I moved the (only) image on the page closer to the top and it's only then that it got recognised and picked up by the extension. What exactly is the thinking here? Does the appropriate image need to appear above the fold? Cavila 14:38, 26 December 2024 (UTC)
- I'd like to know the answer too but at least you solved my problem. I had one page where the og:image meta tags weren't showing up. I move the image to the very top of the markdown and now it works!
- My understanding about this extension is it's supposed to examine all images, regardless of position in the markdown, and determine the best one to use as a page image. This particular page only had one image- it should be an easy choice. Is this a bug or am I totally misunderstanding how this extension is supposed to work? IdeaSupreme (talk) 15:39, 1 April 2025 (UTC)
How are aspect ratios scored?
[edit]@Jdlrobson The documentation is a bit contradictory in the "How does it select images?" section (pinging you since you first added that section, apologies if you're the wrong person here).
It first says width/height between 400-600px and a height/width twice the value of the other dimension.
When discussing sizes it says In Wikimedia wikis, images smaller than 119 pixels are negatively weighted. Images with widths between 400px-600px are favoured, with a preference for the lower bound.. Should this second section say "widths/heights" as well, or should the first section just say "widths"?
When discussing aspect ratios, it first says On Wikimedia wikis a ratio of 0.4 to 3.1 is allowed, with 0.6 to 2.1 preferred. Assuming this aspect ratio is width divided by height, as specified in the second bullet, this would include the width being twice the height in the "preferred" range, but not the height being twice the width, contradicting the height/width twice the value of the other dimension part of the first sentence.
It then goes on to describe the default value of the metric, which seems to say that 0.3-0.49 gets a score of -100, 0.5-1.9 gets a score of 0, 2.0-2.99 gets a score of 5, 3.0-3.09 gets a score of 0, and 3.1 and higher gets -100. Is this intended to be different from the "Wikimedia wikis" values, since it doesn't seem to match up with either the allowed or preferred ranges in the previous bullet, or am I misinterpreting the sentence that says Keys are selected and increase from zero, with a new scoring multiple not taking effect until the key has met or exceeded its value but not exceeded the next key. I'm really not sure what that is trying to say since I can't square key has met or exceeded its value with the previous sentence that says The key's value is the scoring multiple associated with that ratio. Ahecht (talk) 18:15, 26 June 2025 (UTC)
class=pageimage is useless
[edit]I just edited an article in a local MW 1.44 instance. The article was already using a standalone image as illustration, and worked fine with Pageimages, but then after adding a table at the beginning with an embedded SVG, neither image shows up in the popup. not even the older one forcing it with the class name. Is this only me or rather a general problem?
I'm using TextExtracts since the PCS is Wikimedia only. Tactica (talk) 16:38, 8 January 2026 (UTC)
Could this be used to see Wikipedia articles in a category or a WikiProject list missing images?
[edit]If it can be, please answer at this thread on ENWP Village pump (technical) (if it has been archived then here).
A way to scan for articles missing lead images is described there but there are issues with it and a way to just see articles with no image at all would be useful (further ideas would be great). Prototyperspective (talk) 14:40, 8 February 2026 (UTC)