简体   繁体   English

带有 PHP 的 SWF 到图像(jpg、png、...)

[英]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 .我想知道是否可以将带有他的flashvarsswf文件转换为 bitmap图像 But all that in PHP , is it possible?但是PHP中的所有这些,有可能吗? 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).我确切地说我想多次这样做,并且 .swf 文件不是我的(不在我的站点上,我从其他站点获取)。

I allready thank you for your answers: :)我已经感谢您的回答::)

I think the closest you will get is with SWFTOOLS: http://www.swftools.org/我认为你会得到最接近的是 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.有可用的 windows 和 linux 二进制文件,因此您必须从命令行运行它,这应该不是问题。 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.将 swf 转换为 jpeg 的主要问题是,许多 flash 文件需要执行 ActionsScript 才能显示有用的内容,然后您仍然必须拥有正确的框架,因此可能不是那么简单。

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 来说,如果你真的需要电影的 output,那么没有 flash 客户端和截图功能将非常困难。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM