[swfmill] Does swfmill have any options for image compression
Walton, Lynn
Lynn_Walton at adp.com
Mon May 12 15:10:55 PDT 2008
Ralf,
You're awesome! Thanks for providing this information on how to use
ImageMagick to achieve this.
I've rewritten your original step by step instructions to include this
update.
1. Convert the image to an jpg (only color information):
convert source.png -channel RGB -fx "u*a" image.jpg
2. Convert the alpha channel to a grayscale png:
convert source.png -channel matte -negate -separate -depth 8
-type
Grayscale mask.png
3. Import in swfmill:
<clip id="foo" import="image.jpg" mask="mask.png"/>
Can you tell me if you know of any types of png's that doing this would
NOT work? I'm trying to determine if it would it be reasonably safe to
automate this on all png's even when you don't know in advanced much
about the png.
Thanks SO MUCH!
Lynn
------------------------------
Message: 4
Date: Mon, 05 May 2008 20:54:07 +0200
From: Ralf Fuest <ralf-fuest at gmx.de>
Subject: Re: [swfmill] Does swfmill have any options for image
compression?
To: swfmill at osflash.org
Message-ID: <1210013647.6577.27.camel at ralf>
Content-Type: text/plain
Flash seems to require a color image with pre-multiplied alpha,
otherwise the colors in semi transparent areas are wrong. You can use
the following command to create the color image using ImageMagick:
convert source.png -channel RGB -fx "u*a" image.jpg
Ralf
> I tested this theory and I was correct, the 8bit mask doesn't work for
> semi-transparencies (unless I'm doing it incorrectly). I followed your
> example ralf and it worked great for images with 0% or 100%
transparency,
> but not for variable transparencies (ie. tinted glass). Is this a bug
with
> swfmill?
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.
More information about the swfmill
mailing list