Identify reacts differently on different platforms
Posted: 2016-12-20T02:06:25-07:00
Have a question because identify seems to react differently on different platforms for the same file. Below the versions of ImageMagick installed on the two platforms. Maybe it has something to do with IM being a latter version on OS X ? But the IM change log between those 2 versions didn't make me any the wiser.
The file in question is a TIFF file created with Photoshop CC2014 on OSX.
Using the
command on both platforms for the same TIFF file gives different results. In the case of identify on OS X there are two parts in the output, the second containing alpha channel information. And in the case of identify on Linux the second part is not in the output so there's no alpha channel information there.
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.
on OS X returns FalseTrue but on Linux the output is False.
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
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