[swfmill] Does swfmill have any options for image compression

Luke Rajlich lrajlich at gmail.com
Tue May 13 16:11:19 PDT 2008


Hi Lynn,

Identify verbose should have some lines indicating channel depth,
there should be one called alpha:

  Channel depth:
    gray: 8-bit
    alpha: 1-bit

I have written a one line script to tell me the bit depth of the alpha
channel from the output of identify -verbose. If there is no alpha,
nothing is printed out.

identify -verbose file.png | perl -pe 'while(<STDIN>){ if(/^\s.*alpha:
(\w+)-bit/){print "$1";}}'

Luke

On Tue, May 13, 2008 at 4:01 PM, Walton, Lynn <Lynn_Walton at adp.com> wrote:
> Hi Ralf and others,
>
>
>  > This should work with every png file with an alpha channel.
>  > Ralf
>
>  Sorry to be a pain, but would you happen to be able to tell me the way
>  with ImageMagick to be able to tell if the png file has an alpha
>  channel?
>
>  I've been studying all the ImageMagick references I can find, but
>  haven't found it yet.
>
>  Of the info in identify -verbose, I don't know which would be the most
>  reliable indicator?
>
>  Thanks,
>  Lynn
>
>
>
>
>  This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.
>
>  _______________________________________________
>
>
> swfmill mailing list
>  swfmill at osflash.org
>  http://osflash.org/mailman/listinfo/swfmill_osflash.org
>



More information about the swfmill mailing list