[swfmill] feature request: advanced compression options for
tschneidereit at gmail.com
Thu Jul 21 13:51:30 PDT 2005
some time ago on the osflash mailinglist, David Fisher asked about the possibility to set the compression type of imported images in the simple profile.
(see http://osflash.org/pipermail/osflash_osflash.org/2005-July/001552.html and the follow-ups for details)
As the discussion then centered around "allowSmoothing", I wanted to ask whether some support for changing the type and quality of the compression is planned.
I've checked out the source from sourcesecure and had a good look at xslt_simple2lowlevel.xsl to see what's going on in transforming the simple profile xml's <clip import=".." /> stuff. As far as I can tell, you just check for the extension and call the appropriate c function to serialize the image's data so as to be able to represent it in lowlevel swfml, right?
If so, how hard would it be to introduce two more parameters to the <clip>-tag:
- compressionType="[either jpeg or lossless]"
- quality="[number from 0 to 100]"
where the second obviously would only be valid when using compressionType="jpeg".
The reason why this would make sense is that in flash you can have lossily compressed images while still maintaining their alpha channel. Since the only way to import images with an 8-bit alpha channel is to use 32-bit png's, it would be great to be able to convert them to jpegs during importing.
ps: Oh, btw: Daniel, did you get those two swf's you asked for to check the results of setting "allowSmoothing" in the Flash IDE? If not, I'd be glad to whip them up and send them right over!
More information about the swfmill