在 Windows 10 中将多部 TIFF 电影与 ImageMagick 连接起来



我想使用命令提示符将几部TIFF电影(每部电影包含1023帧(与ImageMagick连接起来。这是方案:

Directory of C:DataDEFAULT_USERimage1
06/13/2017  11:49 AM    <DIR>          .
06/13/2017  11:49 AM    <DIR>          ..
06/12/2017  03:29 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms.tif
06/12/2017  03:32 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_1.tif
06/12/2017  03:55 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_10.tif
06/12/2017  03:57 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_11.tif
06/12/2017  04:00 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_12.tif
06/12/2017  04:02 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_13.tif
06/12/2017  04:05 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_14.tif
06/12/2017  04:07 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_15.tif
06/12/2017  04:10 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_16.tif
06/12/2017  04:13 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_17.tif
06/12/2017  04:15 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_18.tif
06/12/2017  04:18 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_19.tif
06/12/2017  03:34 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_2.tif
06/12/2017  04:20 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_20.tif
06/12/2017  04:23 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_21.tif
06/12/2017  04:25 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_22.tif
06/12/2017  04:28 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_23.tif
06/12/2017  04:30 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_24.tif
06/12/2017  04:33 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_25.tif
06/12/2017  04:36 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_26.tif
06/12/2017  04:38 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_27.tif
06/12/2017  04:41 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_28.tif
06/12/2017  04:42 PM       698,868,440 1_2017-06-12_15h27m02s121ms_29.tif
06/12/2017  03:37 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_3.tif
06/12/2017  03:39 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_4.tif
06/12/2017  03:42 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_5.tif
06/12/2017  03:44 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_6.tif
06/12/2017  03:47 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_7.tif
06/12/2017  03:50 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_8.tif
06/12/2017  03:52 PM     2,146,974,200 1_2017-06-12_15h27m02s121ms_9.tif
              40 File(s) 64,922,694,520 bytes
               2 Dir(s)  113,764,110,336 bytes free

我想连接所有这些TIFF文件。我试过了:

C:DataDEFAULT_USERimage1>convert +append 1_2017-06-12_15h27m02s121ms.tif 1_2017-06-12_15h27m02s121ms_1.tif outpu.tif

但是我收到了一些这样的错误消息:

convert: ASCII value for tag "ImageDescription" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/925.
convert: improper image header `1_2017-06-12_15h27m02s121ms.tif' @ error/tiff.c/ReadTIFFImage/1236.
convert: ASCII value for tag "ImageDescription" contains null byte in value; value incorrectly truncated during reading due to implementation limitations. `TIFFFetchNormalTag' @ warning/tiff.c/TIFFWarnings/925.
convert: improper image header `1_2017-06-12_15h27m02s121ms_1.tif' @ error/tiff.c/ReadTIFFImage/1236.
convert: no images defined `outpu.tif' @ error/convert.c/ConvertImageCommand/3254.

我该如何解决这些问题?

在imagemagick中,要创建一个多页的tif,你需要

convert image1.tif image2.tif ... imageN.tif newimage.tif

不要包含 +append,这将尝试将它们并排放在一个宽图像中。使用您自己的映像名称。或者将它们全部放在一个目录中,没有其他内容,然后按字母顺序重命名它们。然后你可以做

convert *.tif newimage.tif

如果您不想要任何压缩,您可以添加您想要的任何 tif 压缩或 -compress none。您也可以根据需要设置深度以及类型。有关其他 TIFF 选项,请参见 http://www.imagemagick.org/script/formats.php 中的 TIFF 部分。另请参阅 http://www.imagemagick.org/script/command-line-options.php#depth 和http://www.imagemagick.org/script/command-line-options.php#type 和http://www.imagemagick.org/script/command-line-options.php#compress

相关内容

  • 没有找到相关文章

最新更新