List Info

Thread: Re: Does swfmill have any options for image compression?




Re: Does swfmill have any options for image compression?
user name
2008-04-24 16:32:39
On Thu, Apr 24, 2008 at 2:23 PM, Mark Winterhalder < mark13gmail.com">mark13gmail.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
Re: Does swfmill have any options for image compression?
user name
2008-04-24 16:44:56
On Thu, Apr 24, 2008 at 11:32 PM, Joel Poloney
<jpoloneygmail.com> wrote:
> On Thu, Apr 24, 2008 at 2:23 PM, Mark Winterhalder
<mark13gmail.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.

Yes, the Flash IDE is what I meant.

I'd be curious about an experiment somebody with access to
Flash could
do: A simple SWF with just a single PNG, once with lowest
compression,
then highest compression, and how those compare to each
other and a
Swfmill equivalent.
I mean, we can see with Zlib how lossless compression can
differ
depending on how many cycles you throw at it, but if SWF's
lossless
compression varies in size, I wonder why it's not at highest
per
default.

Mark

_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Re: Does swfmill have any options for image compression?
user name
2008-04-24 17:00:03
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/sw
fmill/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
<mark13gmail.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
> swfmillosflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org


_______________________________________________
swfmill mailing list
swfmillosflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )