Flash to Image Converter is designed to convert SWF to image and resize image in batch. The application can be used in MS-DOS command line mode. This software is in MS-DOS interface which supports being called via a script. With a batch script, the application can process more than one SWF files in one command line.
You can download the application hereand unpack the zip file to the disk of your computer. In the unpacked folder, you will see the executable file of the application named as “swf2img.exe”. When converting SWF to image and resizing image in batch, you should call this file.
There is a basic command for realizing this function.
for %F in (*.swf) do "swf2img.exe" -in "%F" -out "%~dpnF.jpg" -width value -height value
This command line will convert all SWF files (*.swf) in the current directory and save them using the name of the source SWF files with continuous numbers and extension name “.jpg” followed. You can use these commands for converting all SWF files in the current directory.
Please see the command line example in Figure1, which can help you understand the command line about converting SWF to image and resizing image in batch better.
The command line in prompt window is
for %F in (*.swf) do "C:\Documents and Settings\admin\My Documents\Downloads\swftoimage_cmd\swf2img.exe" -in "%F" -out "%~dpnF.jpg" -width 800 -height 600
After clicking on the Enter button on the keyboard, the application will search for the SWF files in the current directory automatically and convert them to images. The application will retain the source file name and add the continuous number to the newly created images.
Flash to Image Converter Command Line supports these options,
-in: specify input SWF file name
-out: specify output image file name
-width and –height: set the width and height of converted image
-timer: set the capture interval of conversion, in unit of millisecond
-hidewindow: hide the progress dialog during conversion