【问题标题】:Using convert or mogrify to merge multiple PNG files into a single multi-page TIFF file使用 convert 或 mogrify 将多个 PNG 文件合并为一个多页 TIFF 文件
【发布时间】:2012-03-17 08:55:56
【问题描述】:

假设我有一个文件夹foo,其中包含多个 PNG 文件。有没有办法使用convertmogrify 将PNG 文件合并为一个TIFF 文件?

我试过了:

mogrify -format tiff -adjoin *.png

但我得到unrecognized option -adjoin

【问题讨论】:

    标签: image image-processing imagemagick


    【解决方案1】:

    要将它们作为图像序列合并到一个文件中,您可以使用 Matthias Osidio 给出的答案。

    -append 创建单个图像,其中原始集中的图像从上到下堆叠。

    mogrify -append *.png output.tiff
    

    【讨论】:

      【解决方案2】:

      使用Version: ImageMagick 6.6.1-5 2010-04-23 Q16,效果很好:

      convert *.png all.tiff 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-09-01
        相关资源
        最近更新 更多