> I use swfmill to compile my library. All my images are PNG format because 
> all have a transparency area. It is 1.8 MB. How to reduce weight? 

I can verify that just the png compression programs do not bring nearly enough 
compression and that the approach that worked for me is what was suggested .. 
to convert to jpg with an alpha mask.  

I have code I wrote that does this in java using the javax.imageio and 
javax.media libraries.  If you want to see that let me know.  (I think you can 
get my email address from my post.)

It's easier to do with imageMagick but our network guy wouldn't let us use that 
so I had to figure out how to do it in java. 

I think in imagemagick it's something like this:

convert my.png -channel RGB -fx "u*a" my.jpg
convert my.png -channel matte -negate -separate -depth 8 -type Grayscale  
myMask.png

then in swfmill you'd use:
<clip id="myId" import="my.jpg" mask="myMask.png"/>

Also, check the archives on Apr 24 and May 5 2008 there are several posts on 
this topic. http://osflash.org/pipermail/swfmill_osflash.org/

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@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to