: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#1205 "-zoom" command line parameter for Frame export
Author: user alex
Date created:
Type: feature
Visibility: Everybody
Assigned to:
Labels: CommandlineExport
State: upgraded Help

Hello. Please, add ability to use parameter "-zoom" for Frames export (in command line execution of FFDec). It would be very useful. Thanks a lot.
developer
What is the problem with the zoom parameter? Frame export already supports it. I used the following 2 commands to export a frame from your test swf: ffdec.bat -export frame . as2.swf and ffdec.bat -zoom 2 -export frame . as2.swf And attahced the results.
Downloadwithout_zoom.png (80 KiB)Downloadzoom2.png (187 KiB)
user
Sorry, my mistake. Thank you.
developer
Hmm, I'll remove this comment: "currently for FlashPaper conversion only" Probably it was confusing.
State: new→upgraded
user
One more problem. When i execute command: java -jar "C:\Program Files (x86)\FFDec\ffdec.jar" -zoom 5 -export frame "c:\pngs" "c:\swfs" Folder "swfs" attached to the message. i have the error: java.lang.OutOfMemoryError: Java heap space (also attache to the message)
Downloaderror_mess.PNG (54 KiB)Downloadswfs.rar (20,445 KiB)
developer
How big is the image when you export it without zoom?
user
Without zoom every image = 40 - 100 kb. With zoom every image = 0,3 - 1,5 mb. Number of images = 446. Currently try to execute: java -Xmx2048m -jar "C:\Program Files (x86)\FFDec\ffdec.jar" -zoom 5 -export frame "c:\pngs" "c:\swfs"
user
I am sorry, but have one more question. Is there any commandline parameter to execute FFDec in parallel streams?
developer
Yes, the export of page 39 needed about 2.1GB memory. Please try the latest nightly, I optimized it a little bit, now it needs about 1.3GB, which is still quite lot, but your image is 5101x6601 pixel, which is 135MB, and during the rendering a lot of copy needed because of clipping, the shape contours are cached, etc, so this memory usage is not too high.
developer
No, there is no parallel setting for exporting files parallel. The parallel setting means only that the action scripts (in a single swf) are decompiled on multiple threads. We can implement it, but then note that you need about 2gb memory for each thread, so if you execute parallel export on 8 threads, it needs 16GB memory. Please create a feature request if you need parallel export.
user
Thank you a lot! I will create a separate request.
developer
I made the export faster a little bit. (Still quite slow, but about 3 times faster than before) Please try the latest nightly. BTW: did you notice that some texts are missing? for example on page 39.
user
Thanks! Cool! I didn`t notice missing text:( Sorry, Is it possible to fix it?
developer
It is better in the latest nightly.
developer
Or you can use SVG export (with the latest nightly), it completes in 37 seconds (for the 446 pages) ffdec.bat -format frame:svg -export frame pages_img pages Since SVG is a vector image, you don't need zoom.
user
Great! Once again - thank you.
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic