ffmpeg does it, but probably not AS3 swf's. The alternative is something like http://webthumb.bluga.net/home Not free, but cheap and it works like a web-service..
If you're looking into doing something like this yourself, and if you want it full-featured and probably a few seconds delay after starting the swf (bypassing the loading-phase). You probably have to look into running a browser or flashplayer on your server in a fake X-Windows instance and capturing the output. Evert On 19-May-08, at 3:56 AM, Necati Koptagel wrote: > Hi Glen, > > Thanks a lot; I added this to my checklist as well. > > I found something like that; > > http://www.sephiroth.it/tutorials/flashPHP/print_screen/ > http://fi.php.net/manual/en/function.imagegif.php > > cheers, > > N. > > On Sun, May 18, 2008 at 8:43 PM, Glen Pike > <[EMAIL PROTECTED]> wrote: > Hi, > > 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 the server. > > Have a look for "SWF to PNG" and other things. If you are not > tied into using GIF, these could provide a solution. > > > http://www.flepstudio.org/forum/tutorials/507-swf-png-actionscript-3-0-bytearray-class.html > > provides a good insight into the process of how you can go about > this. > > HTH > > Glen > > 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: >> >> http://www.swftools.org/faq.html >> >> 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. >> >> N.- >> >> On Sat, May 17, 2008 at 11:00 PM, Mark Winterhalder >> <[EMAIL PROTECTED]> wrote: >> On Sat, May 17, 2008 at 8:48 PM, Chris Spencer >> <[EMAIL PROTECTED]> 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. >> >> Mark >> >> _______________________________________________ >> osflash mailing list >> osflash@osflash.org >> http://osflash.org/mailman/listinfo/osflash_osflash.org >> >> _______________________________________________ >> osflash mailing list >> osflash@osflash.org >> http://osflash.org/mailman/listinfo/osflash_osflash.org >> > > -- > Glen Pike > 01326 218440 > www.glenpike.co.uk > > > _______________________________________________ > osflash mailing list > osflash@osflash.org > http://osflash.org/mailman/listinfo/osflash_osflash.org > > > _______________________________________________ > osflash mailing list > osflash@osflash.org > http://osflash.org/mailman/listinfo/osflash_osflash.org _______________________________________________ osflash mailing list osflash@osflash.org http://osflash.org/mailman/listinfo/osflash_osflash.org