-2

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

Directory of C:\Data\DEFAULT_USER\image\1

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:\Data\DEFAULT_USER\image\1>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.

我该如何解决这些问题?

4

1 回答 1

1

在 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#depthhttp://www.imagemagick.org/script/command-line-options.php#typehttp:// www.imagemagick.org/script/command-line-options.php#compress

于 2017-06-14T21:20:19.753 回答