I know this is an old question, but convert has the drawback that it recompresses the images. You can use the python tifftools package to do this without recompressing the images: tifftools merge *.tiff combined_file.tiff.
Disclaimer: I am the author of the tifftools package.
发布评论
评论(3)
看起来 ImageMagick 可以做到。解决方案本质上是相同的;从命令行调用它。
具体来说,您需要 -adjoin 选项(由默认)。该命令将类似于:
Looks like ImageMagick can do it. The solution is essentially the same; call it from the command line.
Specifically, you want the -adjoin option (which is on by default). The command will look something like:
还没尝试过,但是有 pylibtiff,这是 libtiff 库的 python 包装器其中
tiffcp
已实现。Haven't tried it, but there is pylibtiff, a python wrapper for the libtiff library on which
tiffcp
is implemented.我知道这是一个老问题,但是
convert
的缺点是它会重新压缩图像。您可以使用 pythontifftools
包来执行此操作,而无需重新压缩图像:tifftools merge *.tiff linked_file.tiff
。免责声明:我是
tifftools
包的作者。I know this is an old question, but
convert
has the drawback that it recompresses the images. You can use the pythontifftools
package to do this without recompressing the images:tifftools merge *.tiff combined_file.tiff
.Disclaimer: I am the author of the
tifftools
package.