[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Swftools-common] swfextract extract all (patch)
From: |
Paul Fitzpatrick |
Subject: |
[Swftools-common] swfextract extract all (patch) |
Date: |
Thu, 18 Feb 2010 10:40:36 -0500 |
Hi there,
Attached are two patches for swfextract that make it easier to pull out all the resources within a swf from scripts.
* swfextract.c.extract_all.patch adds a "-a RANGE" option that should save any png, jpeg, binary, font, or sound resources in the specified range.
* swfextract.c.override_filenames.patch adds a "--outputformat FORMAT" option that allows the naming of files to be better controlled. The format is c-style %d for IDs and %s for the extension.
For example, on an swf like this:
$ swfextract test.swf
Objects in file test.swf:
[-j] 1 JPEG: ID(s) 3
[-p] 3 PNGs: ID(s) 1, 2, 4
[-f] 1 Frame: ID(s) 0
Running:
$ swfextract --outputformat "extract_%06d.%s" -a 1- test.swf
$ ls
Gives:
extract_000001.png extract_000003.jpg test.swf
extract_000002.png extract_000004.png
The patches are made against the git repository, and should leave existing behavior untouched.
Cheers,
Paul
swfextract.c.extract_all.patch
Description: Binary data
swfextract.c.override_filenames.patch
Description: Binary data
- [Swftools-common] swfextract extract all (patch),
Paul Fitzpatrick <=