On Tue, Sep 20, 2005 at 08:09:15PM -0600, michael geary wrote:
> 1) while you can specify multiple jpeg IDs, i don't see that you can
> provide a naming mechanism, so doing something like this:
> > swfextract -j 21,27,29 mySWF.swf
>
> ...appears to simply overwrite the default "output.jpg" file three
> times, which isn't very useful.
Agreed. That should probably be changed.
> 2) I need this jpeg extraction to be a part of a larger process, so
> it would be nice if i could do everything with Python and not have to
> hack shell output.
>
> So, does anyone know of a way to identify and extract the JPEGs
> within a SWF using the Python SWF module?
Today's snapshot supports the following:
import SWF
swf = SWF.load("movie.swf")
for tag in swf.tags:
if tag.isImage():
img = tag.image
img = img.convert("RGB")
img.save_ppm("test.ppm")
Greetings
Matthias
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common