tiff and alpha

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
eric_vi
Posts: 23
Joined: 2010-03-08T20:16:39-07:00
Authentication code: 8675308

tiff and alpha

Post by eric_vi »

i am using Imagick++ . Is there a way to tell if a TIFF image has an alpha channel or not that can be read. And if yes how to read this alpha?

i was thinking type() would tell me but it does not seem so . Thank you for your help
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: tiff and alpha

Post by fmw42 »

in command line, see http://www.imagemagick.org/script/escape.php

convert image -format "%A" info:

convert logo: -transparent white logot.png

convert logo: -format %A info:
False

convert logot.png -format %A info:
True


Don't know how this goes over to any APIs
Post Reply