Question

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

Was it helpful?

Solution

In the swftools package there is a command png2swf. Use the -j switch for jpeg compression.

OTHER TIPS

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top