Re: [Wikidata-l] Finding image URL from Commons image name

2014-07-03 Thread Markus Krötzsch
Brilliant, thanks for the useful and informative answers :-) Markus On 03/07/14 07:21, Legoktm wrote: And there's an API module for this too: https://commons.wikimedia.org/w/api.php?action=querytitles=File:Albert%20Einstein%20Head.jpgprop=imageinfoiiprop=urlformat=jsonfm :) -- Legoktm On

Re: [Wikidata-l] Finding image URL from Commons image name

2014-07-02 Thread Emilio J . Rodríguez-Posada
Hello Markus; The URL of a Commons image is build like this: https://upload.wikimedia.org/wikipedia/commons/x/xy/File_name.ext Where X and XY are the first char and firstsecond chars respectively of the md5sum of the filename (replacing the spaces with _). For a 200px thumb:

Re: [Wikidata-l] Finding image URL from Commons image name

2014-07-02 Thread Liangent
Also there are Special:FilePath and thumb.php. I'm not sure how this affects caching though. http://commons.wikimedia.org/wiki/Special:FilePath/Example.svg http://commons.wikimedia.org/w/thumb.php?f=Example.svgw=420 -Liangent On Jul 3, 2014 4:50 AM, Emilio J. Rodríguez-Posada emi...@gmail.com

Re: [Wikidata-l] Finding image URL from Commons image name

2014-07-02 Thread Legoktm
And there's an API module for this too: https://commons.wikimedia.org/w/api.php?action=querytitles=File:Albert%20Einstein%20Head.jpgprop=imageinfoiiprop=urlformat=jsonfm :) -- Legoktm On 7/2/14, 1:59 PM, Liangent wrote: Also there are Special:FilePath and thumb.php. I'm not sure how this