photoshop tiff files - counting/exporting layers to jpg
Posted: 2009-03-09T10:48:23-07:00
hi. ive been struggling this all day, so i figured i'd ask. all the following is taking place via the command line.
here is the output of 'convert -version'
Version: ImageMagick 6.4.9-10 2009-03-09 Q16 OpenMP http://www.imagemagick.org
im using version 3.8.2 of libtif
the image im testing with is here:
http://itsalmostreal.com/gnu/imagemagick/test.tif
here is a screenshot of the file open in photoshop, showing the layers:
http://itsalmostreal.com/gnu/imagemagick/ps_grab.png
here is a screengrab of the settings used when i save the file (though i have tried every other combination and had the same results):
http://itsalmostreal.com/gnu/imagemagic ... ttings.png
here are the commands and results that im running
identify command: identify -format "%[scenes]" test.tif
result:
identify: test.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
identify: test.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/526.
identify: test.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
0
i understand that the 3 errors are most-likely just proprietary tag read errors, and actually have no effect on the outcome. its the 0 that bothers me. the file definitely has 3 layers, so im not sure why its telling me 0.
convert command: convert test.tif[2] layer_2.jpg
result: yields the same tag read errors, and creates a file with all 3 layers merged.
can anyone provide me with any insight? my main goal is to be able to take a multilayer tiff file, count the number of layers, and then output a thumbnail of each layer.
is this going to be possible? i feel like i must be making a silly mistake. thanks for any and all help. its greatly appreciated.
here is the output of 'convert -version'
Version: ImageMagick 6.4.9-10 2009-03-09 Q16 OpenMP http://www.imagemagick.org
im using version 3.8.2 of libtif
the image im testing with is here:
http://itsalmostreal.com/gnu/imagemagick/test.tif
here is a screenshot of the file open in photoshop, showing the layers:
http://itsalmostreal.com/gnu/imagemagick/ps_grab.png
here is a screengrab of the settings used when i save the file (though i have tried every other combination and had the same results):
http://itsalmostreal.com/gnu/imagemagic ... ttings.png
here are the commands and results that im running
identify command: identify -format "%[scenes]" test.tif
result:
identify: test.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
identify: test.tif: unknown field with tag 40961 (0xa001) encountered. `TIFFReadCustomDirectory' @ tiff.c/TIFFWarnings/526.
identify: test.tif: unknown field with tag 37724 (0x935c) encountered. `TIFFReadDirectory' @ tiff.c/TIFFWarnings/526.
0
i understand that the 3 errors are most-likely just proprietary tag read errors, and actually have no effect on the outcome. its the 0 that bothers me. the file definitely has 3 layers, so im not sure why its telling me 0.
convert command: convert test.tif[2] layer_2.jpg
result: yields the same tag read errors, and creates a file with all 3 layers merged.
can anyone provide me with any insight? my main goal is to be able to take a multilayer tiff file, count the number of layers, and then output a thumbnail of each layer.
is this going to be possible? i feel like i must be making a silly mistake. thanks for any and all help. its greatly appreciated.