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?
Regarding png size, I've been using imagemagick to resize my images and apparently have been doing it wrong all along. I have been able to get some file size improvements out of it, but I still feel I can do something here on swfmill's end to compress it even further. Thoughts? -- Joel On Thu, Apr 24, 2008 at 9:37 PM, Joel Poloney <[EMAIL PROTECTED]> wrote: > Ralf, > > Sounds good, I'm going to try this soon. Do you know how well this works if > parts of image are 50% transparent instead of 100%? I'm going to try it, but > I'm afraid that the colors might not look right. > > -- Joel > > > On Thu, Apr 24, 2008 at 3:00 PM, Ralf Fuest <[EMAIL PROTECTED]> wrote: > >> 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 <[EMAIL PROTECTED]> >> > 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@osflash.org >> > http://osflash.org/mailman/listinfo/swfmill_osflash.org >> >> >> _______________________________________________ >> swfmill mailing list >> swfmill@osflash.org >> http://osflash.org/mailman/listinfo/swfmill_osflash.org >> > >
_______________________________________________ swfmill mailing list swfmill@osflash.org http://osflash.org/mailman/listinfo/swfmill_osflash.org