[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-dev] Starting Points for developing a tool/lib for SWF -> Ima

From: Benjamin Wolsey
Subject: Re: [Gnash-dev] Starting Points for developing a tool/lib for SWF -> Image?
Date: Mon, 31 Aug 2009 19:49:10 +0200

> I'm open to other ideas if there's a simple way of doing this that I'm
> missing, or if Gnash isn't the right project to use as a starting
> point. Unfortunately, I don't have control over the requirements. I
> have to take SWF + JPEG and return an image, so I can't get around the
> problem by simply not solving it :).

Gnash doesn't currently have any way to export frames as JPEGs, but it
would be relatively simple to do. There is already a 'dump' gui
(gui/dump.cpp) that exports all frames to raw video. To dump to a single
jpeg would just involve grabbing the raw image data in the same way
(which is easily available at least from Gnash's AGG renderer) and
writing it to the required format (Gnash supports writing Jpegs at
least; I can't remember whether I added PNG writing support or not).

That would all be done in gui/*_agg_glue files.

However, unless you want to grab anything that's generated using
ActionScript or transformed using a placeobject tag or similar, there's
likely no need to use an actionscript interpreter like Gnash. Tools like
swfextract from swftools can extract single static frames from a SWF
(output also in SWF format), which then just need converting to an image
type. I believe there are various tools that can do that as well.

Free Flash, use Gnash

Benjamin Wolsey, Software Developer -

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

reply via email to

[Prev in Thread] Current Thread [Next in Thread]