[swfmill] Does swfmill have any options for image compression?

Ralf Fuest ralf-fuest at gmx.de
Thu Apr 24 15:00:03 PDT 2008


I'm not sure this is the same thing the flash IDE does but this is a way
to get better compression for transparent pngs using swfmill:

I have used ImageMagick to do the image conversions:

1. Convert the image to an jpg (only color information):
convert source.png 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"/>

Of course you can also save these files directly from your image editing
application.

I've uploaded a example at: http://pep-mp.de/swfmill/Mask.zip

The archive contains two xml files. 1.xml does use the original image
and 2.xml the jpg image and png mask.

Ralf


Am Donnerstag, den 24.04.2008, 14:32 -0700 schrieb Joel Poloney:
> On Thu, Apr 24, 2008 at 2:23 PM, Mark Winterhalder <mark13 at gmail.com>
> wrote:
>         I think the compression setting in Flash only affects JPGs
>         (where
>         Swfmill just takes what you pass to it, so you'd have to use
>         another
>         program to compress your JPGs further if desired).
> 
> If you're talking about the Flash IDE, then this is incorrect. Even
> though it says "jpeg compression", it will affect all images,
> regardless. For example, I had it compressing my transparent PNG
> images quite a bit. I have no idea what type of compression they're
> using, but I think that's what this thread (and my thread) are all
> about. How can we achieve such compression from the command line.
> 
> -- Joel
> 
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org




More information about the swfmill mailing list