SWF使用PHP来形象(jpg,png,...) [英] SWF to image (jpg, png, ...) with PHP

查看:210
本文介绍了SWF使用PHP来形象(jpg,png,...)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以将> swf 文件与 flashvars 转换为位图图像。但是 PHP 中的所有内容都可以吗?我确切的说,我想多次做这个.swf文件不是我的(不是在我的网站上,我从其他网站)。



<我已经感谢你的回答! :)

解决方案

我认为最接近你会得到的是SWFTOOLS: http://www.swftools.org/

它可以提取位图和flashvars。有Windows和Linux二进制文件可用,所以你必须从命令行运行它,这不应该是一个问题。将swf转换为jpeg的主要问题在于很多flash文件需要执行ActionsScript才能显示有用的内容,然后仍然必须拥有正确的框架,所以它可能不那么简单。



所以我的答案是:是的,如果电影非常简单并且只包含简单的位图,则可能是可能的。但也没有:对于大多数瑞士法郎如果你真的需要电影的输出,没有一个Flash客户端和截图功能将是非常困难的。


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.

这篇关于SWF使用PHP来形象(jpg,png,...)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆