The file in question is a TIFF file created with Photoshop CC2014 on OSX.
Using the
Code: Select all
identify -verbose
identify on Linux
identify on OSX
In the case of OS X i would be able to determine if the file has transparency. But on Linux this seems not possible as the necessary information isn't there.
Code: Select all
identify -format %A
The question now is how can i reliably determine if a file has transparency on Linux for above Photoshop TIFF created files ?
linux, CentOS 6.5
[root@releasetest ~]# convert -version
Version: ImageMagick 6.8.9-8 Q16 x86_64 2016-11-10 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC OpenMP
Delegates: bzlib djvu fontconfig freetype jng jpeg lcms openexr pangocairo png tiff x xml zlib
OSX Sierra 10.12.1
Stefaans-MacBook-Pro:~ stefaan$ convert -version
Version: ImageMagick 6.9.7-0 Q16 x86_64 2016-12-19 http://www.imagemagick.org
Copyright: Copyright 1999-2017 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff webp xml zlib