I want to let a user upload a PNG-file with alpha transparency and have it compiled by the server to a swf-file with jpeg compression on the embedded PNG-file.
How can I make this happen?
I thought first I'd just construct a class and compile it with Flex Framework, but Flex does not compress the embedded PNG-files. You who have tried have probably ended up making an assets.swf file compiled from within the Flash IDE.
Any thoughts appreciated.
Kind regards, nitech
In the swftools package there is a command png2swf. Use the -j switch for jpeg compression.
Try ImageMagick, I recall seeing it used by a lot of shared-hosting web-servers. It can be executed on the command line or in scripts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With