nitech
nitech

Reputation: 1832

Command prompt convert png to swf

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

Upvotes: 3

Views: 2639

Answers (2)

rcs
rcs

Reputation: 68849

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

Upvotes: 6

Matt Joiner
Matt Joiner

Reputation: 118660

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.

Upvotes: 1

Related Questions