将Flash(SWF)边框渲染为图片(PDF,PNG,JPG) [英] Render Flash (SWF) frame as image (PDF,PNG,JPG)

查看:183
本文介绍了将Flash(SWF)边框渲染为图片(PDF,PNG,JPG)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想写一个python脚本,它需要一系列swf文件并将它们转换为单独的图像文件。每个swf文件只有一个框架,图片等),没有动画。我已经尝试过从swftools工具集(Windows版本)的渲染命令,但是生成的图像的分辨率太低。



所以我需要的是: / p>

一个命令行工具(Windows / Linux)或一个python库,它将一个框架从swf转换为位图或更好的像PDF可以保留文本数据)。



提前感谢!

解决方案

您可以创建一个AIR应用程序,加载每个SWF,获取截图并将其写入文件。



你需要启动一些东西来做渲染,就我所知,如果没有播放器或者一些开源实现,你就不能这样做。



我认为您最好的选择是AIR, SDK 是免费的和跨平台的。如果你习惯于python,AS3必须很容易拿起来。



HTH,



J


I would like to write a python script that takes a bunch of swf files and renders them to individual image files.

Each swf file has just one frame (text, pictures etc.) and no animations at all. I have already tried the render command from the swftools toolset (The windows version), but the resolution of the resulting image is too low.

So what I need is:

A command line tool (Windows/Linux) or a python library which renders one frame from a swf to a bitmap or better to something like a PDF (It would be cool if the text data could be retained). It would be great if the target resolution/size could be set manually.

Thanks in advance!

解决方案

You could for example build an AIR app that loads each SWF, takes the screenshot and writes it to a file.

The thing is you'll need to kick off something to do the render and, as far as i know, you can't do that without the player or some of its Open Source implementation.

I think your best bet is going AIR, the SDK is free and cross-platform. If you are used to python, the AS3 necessary should be easy enough to pick up.

HTH,

J

这篇关于将Flash(SWF)边框渲染为图片(PDF,PNG,JPG)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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