[Top][All Lists]

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

Re: [Swftools-common] Get pictures from MovieClips

From: Pablo Beltran
Subject: Re: [Swftools-common] Get pictures from MovieClips
Date: Tue, 6 Nov 2012 09:57:29 +0100

2012/11/6 Matthias Kramm <address@hidden>
On Mon, Nov 05, 2012 at 01:06:31PM +0100, Pablo Beltran <address@hidden> wrote:
> The data above corresponds to a png picture. Is the *734x449 *the total
> size of the shape and  the *fill* coordinates below the offset to draw the
> png inside the shape container?

734x449 is the size of the *bitmap*, not of the shape. The bitmap
may be scaled to fit into the shape.
The fill coordinates below give you offset and size of the shape, though.

You may also want to try
    swfdump -b file.swf
to get explicit bounding boxes.

swfdump -b looks the best approach: much lighter than  swfdump -D and also provides the required information.

Regarding the sizes and coordinates: i think I get the point. Therefore there is a "small" problem getting the image from the rendered page at the client side: bitmaps are scaled to fit the shape, so probably they will be smaller (or greater) than the original, right?.

The "right" way to extract the images would be from the SWF file content. Does the AS3 API provide support for that? (a sort of SWF introspection AS3 API) 

Other ways could be:
1) Extract the pictures at the server side and send them with the SWF file (a bit ugly).
2) Compile SWFTools with FlasCC and build a SWC library to extract the images from the client side ;-)



SWFTools-common is a self-managed list. To subscribe/unsubscribe, or amend an existing subscription, please kindly point your favourite web browser at:<http://lists.nongnu.org/mailman/listinfo/swftools-common>

reply via email to

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