thumbnail-zoom icon indicating copy to clipboard operation
thumbnail-zoom copied to clipboard

Links to wikimedia image pages from outside articles don't work

Open dadler opened this issue 12 years ago • 2 comments
trafficstars

This problem was reported by G. King via email [edited by David].

Images in pages other than Wikimedia articles, which are linked to Wikimedia image pages do not display a pop-up; they display an error indicator. The TZP extension fails to load the image because they usually have URLs that end in image extensions (such as .png, .jpg) but they don't actually link to images, but instead link to image description pages.

Example page (on the wikimedia blog, which is an internally-hosted wordpress blog): Here: http://blog.wikimedia.org/2013/02/07/echo-a-new-notification-system-for-wikipedia/

Page linked to: https://commons.wikimedia.org/wiki/File:Echo-Flyout-Screenshot-CloseUp-452px-02-05-13.png

This may be fixable by detecting that the format of the link matches the format used by wikimedia/wikipedia, and using TZP's Wikipedia rule in that case. It does work if "Others" is off and "Thumbnails" is on.

dadler avatar Feb 08 '13 05:02 dadler

Can't TZP use an xpath for File: pages?

//div[@id="file"]/a/img

Example

Kleptoparasitism: Mammals http://en.wikipedia.org/wiki/Kleptoparasitism#Mammals

All three thumbs in the section give me a warning message.


Here's one of the three.


Pre-post thought

I'm no expert on Wikipedia urls but at least for the example - you can just change the NUMBERpx

/120px-Cheetah_with_impala_kill.jpg - thumb
/800px-Cheetah_with_impala_kill.jpg - the image at File:
/500px-Cheetah_with_impala_kill.jpg - I choose 500 at random
http://upload.wikimedia.org/wikipedia/commons/thumb/e/eb/Cheetah_with_impala_kill.jpg/500px-Cheetah_with_impala_kill.jpg

f1234567 avatar Feb 22 '13 11:02 f1234567

Those images do actually work in my tests (using TZP 2.3.2 and 2.4rc3), showing the image of this url: http://upload.wikimedia.org/wikipedia/commons/e/eb/Cheetah_with_impala_kill.jpg . It does this as long as the "Wikipedia" checkbox is on in TZP Preferences.

Does it not do that for you? What warning message do you see? If we need to figure out why it's not working, it may help if you turn on Debug in TZP Preferences, hover the thumbnail, press "Copy Log" in TZP Preferences, and paste into github (just the last portion if it's very long).

dadler avatar Feb 24 '13 22:02 dadler