Open danburzo opened 5 years ago
Here we go.
https://upload.wikimedia.org/wikipedia/commons/3/3a/Perkulator.jpg
Remove the thumb
from url :)
may i help with it?
@bekicot sure thing! I looked into it a bit and apparently the "canonical" way to get the image's original URL is to make a query to the Wikipedia API:
Maybe a good first step is just making imagesAtFullSize
ignore wiki image files?
Maybe a good first step is just making imagesAtFullSize ignore wiki image files?
I added this in the commit above.
The idea of the
imagesAtFullSize
enhancement is to get the largest available image from blogs using Blogspot, WordPress, and the like:https://github.com/danburzo/percollate/blob/3506b370fc1d54b9039a1f104c20defda7859eb8/src/enhancements.js#L1-L20
However, Wikipedia images are an exception:
They link to what looks like an image file, but is in fact a HTML page for that image. How can we handle this situation gracefully?