swftools icon indicating copy to clipboard operation
swftools copied to clipboard

swfextract can't bypass the error!

Open amitbha opened this issue 10 years ago • 2 comments

The swfextract not support extract all the pic resources, but use ids to select instead. No big deal, but if one of the ids fail to extract, the app exit. If there are hundreds of pics, I have to check which one fails and redo the extract. If fail again, recheck, redo....

Any option to extract all pic resources, like -j without parameters? Or option to bypass extract error?

amitbha avatar Jul 21 '15 07:07 amitbha

i have the same request for the other media types, when no ID is specified just extract all of them...

eadmaster avatar Aug 30 '19 04:08 eadmaster

@amitbha, how about a loop?

Imagine that animation.swf contains all images.

swfextract animation.swf will give you the desired numbers.

In Linux, you may have the following loop;

for i in 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42
do echo $(echo $i | sed "s/,//")
done

In Windows, the loop may read:

FOR %i IN (14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 32, 33, 35, 36, 38, 39, 41, 42) ^
DO ECHO %i

Of course, you need to replace echo $iwith the proper invocation of swfextract.

I hope this might help.

ousia avatar May 19 '24 16:05 ousia