News for hackers. Stuff that matters.
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by rakic on Friday July 03, 2020 @05:03AM (#23722337)
Can anyone recommend a working script that downloads and stitches the highest resolution image available from here:

https://artsandculture.google.com/asset/the-last-supper-attr...

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by lovasoa on Friday July 03, 2020 @09:50AM (#23723999)
I maintain a suite of opensource tools that do exactly that: download zoomable image tiles and stitch them together.

- dezoomify (https://dezoomify.ophir.dev) is a web application. It is super easy to use, but the final size of the image is limited by the browser. No browser can create gigapixel canvases.

- dezoomify-rs (https://lovasoa.github.io/dezoomify-rs/) is a command-line desktop application for Linux, MacOS, and Windows that does the same thing. It has no limitation (other than the one imposed by the file formats themselves) on the final image size.

- dezoomify-extension (https://lovasoa.github.io/dezoomify-extension/) is a browser extension to extract zoomable image URLs from webpages. It is less relevant for google arts and culture, where the zoomable image URL is the URL of the viewer page itself.

If someone is interested by how the zoomable image format used by google arts works, the source code of dezoomify-rs is quite understandable: https://github.com/lovasoa/dezoomify-rs/tree/master/src/goog...

In the case of this image, I'm not sure the highest zoom level saved as a single PNG makes a lot of sense. No image viewer will accept to open a PNG file of this size. For JPEG, the format does not even allow images of that size.

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by taffit on Saturday July 04, 2020 @10:52AM (#23732617)
Really great tools. Worked flawlessly with the mentioned copy of the original post. Thank you for this!
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by dpau on Friday July 03, 2020 @02:48PM (#23726429)
love these tools, have used them on multiple projects, thanks so much for your work.
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by rakic on Friday July 03, 2020 @11:08AM (#23724652)
Edit: I’m a dummy.
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by lovasoa on Friday July 03, 2020 @11:39AM (#23724915)
Yes, as I wrote, the final size of the image is limited by the browser. See [1] for more details. The highest resolution version can only be downloaded by dezoomify-rs [2], not dezoomify.

[1] https://github.com/lovasoa/dezoomify/issues/296

[2] https://lovasoa.github.io/dezoomify-rs/

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by thdrdt on Friday July 03, 2020 @05:55AM (#23722626)
It's old software but I believe this can also stitch 'flat' panorama's:

http://hugin.sourceforge.net/

See "Stitching flat scanned images": http://hugin.sourceforge.net/tutorials/scans/en.shtml

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by glaberficken on Friday July 03, 2020 @06:29AM (#23722785)
I used Hugin to stitch a bunch of building site blueprints just last week. It was painful... just very unintuitive and hard to grasp. Very powerful software though. Just keep in mind it was built to stitch panorama photos, compensate for lens deformation, point of view, etc.

Stitching flatbed scans is not the best use case for Hugin and it shows.

I used the same tutorial linked by Op http://hugin.sourceforge.net/tutorials/scans/en.shtml

Note that Hugin requires overlap between scans. I would test MS ICE first if I were you (less powerful, but way simpler) https://www.microsoft.com/en-us/research/product/computation...

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by ArgyleSound on Friday July 03, 2020 @06:32AM (#23722798)
https://ophir.alwaysdata.net/dezoomify/dezoomify.html

It takes a while and I think it works best in Google Chrome.

Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by rakic on Friday July 03, 2020 @07:16AM (#23723002)
Thanks for the link, but I tried it previously and it doesn’t download nowhere near the full resolution.
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by RandomBacon on Friday July 03, 2020 @10:10AM (#23724168)
When someone has it, can you please make it a torrent?
Re:Leonardo da Vinci’s The Last Supper in a new gigapixel image by thanatos519 on Friday July 03, 2020 @05:38AM (#23722535)
I want this too, so that I can print it out!