Code: Select all
$ magick -version
Version: ImageMagick 7.0.7-1 Q16 x64 2017-09-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Visual C++: 180040629
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo flif freetype jng jp2 jpeg lcms lqr openexr pangocairo png ps rsvg tiff webp xml zlib
https://www.dropbox.com/s/y1hzh3kjkbvx9 ... x.tif?dl=1
Code: Select all
$ magick identify logo_mix.tif
logo_mix.tif[0] TIFF 640x480 640x480+0+0 1-bit Bilevel Gray 173172B 0.000u 0:00.001
logo_mix.tif[1] TIFF 640x480 640x480+0+0 2-bit Grayscale Gray 173172B 0.000u 0:00.000
logo_mix.tif[2] TIFF 640x480 640x480+0+0 8-bit Grayscale Gray 173172B 0.000u 0:00.000
logo_mix.tif[3] TIFF 640x480 640x480+0+0 8-bit sRGB 256c 173172B 0.000u 0:00.000
logo_mix.tif[4] TIFF 640x480 640x480+0+0 16-bit sRGB 173172B 0.000u 0:00.000
$ magick identify -format '%C\n' logo_mix.tif
Group4
LZW
LZW
LZW
Zip
Code: Select all
$ magick convert logo_mix.tif[0] logo_mix.tif[4] logo_tmp.tif
$ magick identify logo_tmp.tif
logo_tmp.tif[0] TIFF 640x480 640x480+0+0 1-bit Bilevel Gray 14156B 0.000u 0:00.000
logo_tmp.tif[4] TIFF 640x480 640x480+0+0 1-bit Bilevel Gray 14156B 0.000u 0:00.000
Code: Select all
$ magick identify -format '%C\n' logo_tmp.tif
Group4
Group4
PS I know it can be done with tiffcp after separating it to pages, but I'd like to know if it is possible with ImageMagick's command line or some API in Magick.NET.