These are the necessary file type constants to use with the command line interface. The /F (original file type) and /C (Target File Type) are the command line arguments that use these constants. You will use the table below by replacing the # symbol with the appropriate number. For example to specify a bitmap as the original file type and the target file as JPG use “/F
Image File Type Constants for Use with /F# and /C#
File Type |
Constant |
Independent JPEG Group (*.jpg) |
1 |
Windows Bitmap (*.bmp) |
2 |
Tagged Image File Format (*.tif) |
3 |
Graphics Interchange Format (*.gif) |
4 |
EMF (*.emf) |
5 |
J2K (*.j2k) |
6 |
PCX Bitmap (*.pcx) |
7 |
Portable Network Graphics (*.png) |
8 |
Sun Rasterfile (*.ras) |
9 |
Targa File (*.tga) |
10 |
Windows Meta File (*.wmf) |
11 |
* = These file types can only be original file types (/F#), not target file types.
NOTE: You do not need to specify the /F or the /C switch if your original (/S)and target files (/T) use standard file extensions. That is, if your JPG files are named myfiles.jpg and not myJeg.BMP then you do not have to specify the /F and /C. However, if your JPG files are named MyJPeg.BMP then you MUST specify the /F and /C switches.
See Also:
Helpful Hints for Creating a Command Line