dezoomify-rs icon indicating copy to clipboard operation
dezoomify-rs copied to clipboard

PNG is limited by available memory

Open natrius opened this issue 11 months ago • 2 comments

Admittedly a niche-case:

On https://github.com/lovasoa/dezoomify-rs there is the paragraph about PNG and

The PNG encoder in dezoomify-rs can create very large images; it is not limited by the available memory on your computer. This format is chosen by default when the image is very large, or its size is not known in advance.

I have a very large picture and using

dezoomify-rs.exe https://tiles.arcanum.com/mercator/europe-18century-firstsurvey/15/{{X}}/{{Y}}

Leads to my RAM running full and the image just aborting and the image not usable. So it seems the paragraph is not entirely correct - or did i miss something? The map/image in question https://maps.arcanum.com/de/map/europe-18century-firstsurvey/?layers=163%2C165&bbox=1286999.2940432588%2C6173024.589068221%2C1360378.8411970278%2C6199357.145312464

I found someone with more RAM that is helping me out, we are curious on how big this image is gonna be.

natrius avatar Jan 21 '25 10:01 natrius

Indeed, there seems to be an issue on our side.

But downloading at max resolution to PNG is probably not a solution in your case, since you won't find any software that can open such a large PNG. Downloading a lower zoom level, or downloading to IIIF is probably a better idea in your case.

lovasoa avatar Jan 21 '25 11:01 lovasoa

Doesn't using dezoomify-rs without specifying an output filename with the .png extension output a JPEG image file thus requiring the whole image to fit in RAM? @natrius , anyway it looks like dezoomify-rs is not able to correctly download images from arcanum.com.

agiudiceandrea avatar Sep 20 '25 20:09 agiudiceandrea