[osflash] SWF to GIF
postmaster at glenpike.co.uk
Sun May 18 10:43:48 PDT 2008
It looks like you could do a few things, here is my suggestion -
there are probably other ways too, so don't discount them.
Part of it would be client side, the other part Server side.
Take a snapshot of your frame - into a Bitmap.
Look at libraries to compress that and send it across to your server.
Then use Server side code to generate your file.
For PHP, there is the GD library, but this does not always support
GIF because of the issues with the GIF algorithm not being open.
However, you could always consider PNG format. There is also the
ImageMagick library. Most decent PHP hosting has GD or ImageMagick
installed. I can't speak for ASP or other languages, but I am guessing
there will be tools to do the same.
With AS3 being a lot faster, there is also the option of creating
your image on the client in the format you want, then posting this to
Have a look for "SWF to PNG" and other things. If you are not tied
into using GIF, these could provide a solution.
provides a good insight into the process of how you can go about this.
Necati Koptagel wrote:
> I need to take a snapshot of the first frame, not extract image files
> from the SWF file. There are already tools for that on SWFtools.
> Furthermore, it has to be on serverside, therefore google links will
> not work.
> I found something like that on SWFTools FAQ:
> *19.) How can I convert SWF frames to bitmap?*
> There's a "swfrender" utility in the CVS, which isn't finished yet,
> and will only work for *very* simple SWF files. (No Actionscript,no
> gradient fills, no morph shapes, no blending modes, no filters, etc.)
> Probably other Flash Open-Source projects (like Gnash) have some
> more sophisticated utilities for this.
> That could work great; if it worked completely.
> On Sat, May 17, 2008 at 11:00 PM, Mark Winterhalder <mark13 at gmail.com
> <mailto:mark13 at gmail.com>> wrote:
> On Sat, May 17, 2008 at 8:48 PM, Chris Spencer
> <chrisspen at gmail.com <mailto:chrisspen at gmail.com>> wrote:
> > Correct me if I'm wrong, but aren't you comparing apples to
> oranges? A
> > SWF is a package that includes bitmap, vector, sound, and program
> > logic, whereas a GIF is essentially just a bitmap.
> Not necessarily. An SWF used to be a format for animations, the rest
> came later. Animated GIFs can contain, well, animations.
> Of course you can't have interactivity or logic in an animated GIF,
> but you can well have badgers and mushrooms (without sound) -- for,
> say, a thumbnail preview it does make sense.
> osflash mailing list
> osflash at osflash.org <mailto:osflash at osflash.org>
> osflash mailing list
> osflash at osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the osflash