Jump to content

Wikipedia:Reference desk/Archives/Computing/2015 September 10

From Wikipedia, the free encyclopedia
Computing desk
< September 9 << Aug | September | Oct >> September 11 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


September 10

[edit]

Image extraction

[edit]

Is this extractable for download in full resolution (click for zoom)? Neither Dezoomify nor page info in Firefox help. The image seems to be above 2 megapixels. Brandmeistertalk 20:46, 10 September 2015 (UTC)[reply]

I should mention that the picture (although very tasteful and artistic) is decidedly NSFW. Tevildo (talk) 21:34, 10 September 2015 (UTC)[reply]
I stitched the tiles together "by hand" (with a custom Python script) and uploaded the result to File:George Hare - Victory of Faith.jpg. I had to crop out the frame because they're not allowed on Commons. -- BenRG (talk) 22:40, 10 September 2015 (UTC)[reply]
On further experimentation, dezoomify 1.4 will grab the image if you pass the image base URL explicitly, like this:
       dezoomify.py -b http://content.ngv.vic.gov.au/col-images/zooms/Fd100542/ out.jpg
That URL can be found by using Chrome or Firefox's inspector, or by looking for the line var url = '...'; in www.ngv.vic.gov.au/explore/collection/work/4011/. You could fix dezoomify.py by adding something like the following to the image_path_regexes list:
       (r"var url = '(https?://[-\w.]+/col-images/zooms/\w+)/';", 1),
Then the following command line will work:
       dezoomify.py http://www.ngv.vic.gov.au/explore/collection/work/4011/ out.jpg
-- BenRG (talk) 00:40, 11 September 2015 (UTC)[reply]
My stitching revealed that the full-sized image is slightly larger, at 3,238 x 1979 pixels. Brandmeistertalk 13:56, 11 September 2015 (UTC)[reply]
I assume you are stitching together screenshots of the web interface. I get that size too at maximum zoom, but it is just the image I uploaded scaled by around 5/3 horizontally and vertically. There is no more detail, just more pixels. -- BenRG (talk) 19:18, 11 September 2015 (UTC)[reply]