开发者

SWF to image (jpg, png, ...) with PHP

开发者_如何转开发

I would like to know if it could be possible to convert an swf file, with his flashvars to a bitmap image. But all that in PHP, is it possible ? I precise that I would like to do it several times, and that the .swf file is not mine (is not on my site, I take it from a other site).

I allready thank you for your answers ! :)


I think the closest you will get is with SWFTOOLS: http://www.swftools.org/

It can extract bitmaps and flashvars. There are windows and linux binaries available so you'll have to run it from the commandline, that should not be a problem. The main problem of converting an swf to jpeg is that a lot of flash files require execution of ActionsScript in order to show something usefull, and then still you have to have the right frame, so it might not be so straightforward.

So my answer would be: Yes, it might be possible if the movie is very simple and only consists of simple bitmaps. But also no: for most swf's it will be very difficult without a flash client and screenshot capabilities if you really need the output of the movie.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜