how to convert dzi (deep zoom) files to full image

我的梦境 提交于 2020-01-16 05:47:24

问题


How can I convert deep zoom files to a full picture?


回答1:


I don't think there's a tool for this, but you can probably write one easily. The only folder you need is the highest level (16 in your screenshot). Tile 0_0 goes in the upper left corner, then tile 1_0, etc. wrapping around to 0_1 on the next row.

To get it exact you'll need to take a look at whether there was any overlap when the tiles were created. Look in the .dzi file for "overlap". If there is, you'll need to compensate by omitting the overlap. Here's more info on the file format: https://github.com/openseadragon/openseadragon/wiki/The-DZI-File-Format




回答2:


You can do this in libvips with something like:

vips arrayjoin "$(ls *.jpeg | sort -t_ -k2g -k1g)" x.tif --across 20

That will find all .jpeg files in the current directory, sort the filenames (of the form x_y.jpeg) by y first, then x, and assemble them into a grid 20 tiles across.

There's a more complete version of this answer here:

https://stackoverflow.com/a/58927878/894763




回答3:


There are lots of tools for this. Dezoomify and Dezoomify-rs work well, and there is a website version for smaller files/projects too.



来源:https://stackoverflow.com/questions/53986084/how-to-convert-dzi-deep-zoom-files-to-full-image

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!