2017-06-14 61 views
-2

我想用ImageMagick使用命令提示符連接幾個TIFF電影(每個電影包含1023幀)。這是該計劃:在Windows 10中使用ImageMagick連接幾個TIFF電影

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. 

如何工作的這些東西?

+0

看起來您的TIF文件不兼容。 ImageMagick和libtif的版本是什麼?什麼是您的平臺/操作系統(假定Windows)?你可以發佈一個tiff文件,因此可以在當前版本的ImageMagick中檢查它。正確的ImageMagick語法是讀取所有輸入圖像,然後+追加,然後輸出。也許你的附加tif文件有一個寬度限制?它們有多大(尺寸) – fmw42

+0

續:對不起,我從您的標題中看到,您使用的是Windows 10.但ImageMagick的版本是多少。連接是什麼意思?你真的是指使用+ append並排放置它們嗎?或者你想要一個多頁面的TIFF?看起來您的ImageDescription字段包含錯誤的字符,因此您的文件可能無法根據TIFF規範正確格式化。它可能是ImageMagick或liftoff中的一個錯誤。因此張貼示例圖片可以幫助解決這個問題。您的文件每個顯示爲2 GB。這些都是大文件要追加,特別是如果你想追加1023他們! – fmw42

+0

嗨。是的,我想做一個多頁的TIF。我正在使用圖像magick這個版本的窗口ImageMagick-7.0.6-0-Q16-x64-dll.exe –

回答

0

在ImageMagick中,以創建一個多TIF,你做

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

不包括追加+,這將嘗試把它們並排側一個寬圖像。使用你自己的圖像名稱。或者把它們全部放在一個目錄中,其中沒有其他內容,並按照字母順序重新命名。然後,你可以做

convert *.tif newimage.tif 

您可以添加你想要或任何TIF壓縮-compress沒有,如果你不希望任何壓縮。您可以設置深度,但也可以設置類型。有關其他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