Products Downloads Order Support

LEAD Command Line Image File Converter


Related Products
LEAD Command Line Quick View
TIFF Tag Editor

The LEAD Command Line Image File Converter is perfect for any one that needs to convert a single file or batch convert an entire directory in a batch file. And best of all is it free!

The Image File converter can convert to and from an extensive list of image formats. Additionally, it can resize and change the color depth of the image as it converts.

The general syntax for the LEAD Command Line Image File Converter is:
LFC [Drive:][Source] [Drive:][Target] [/F] [/B] [/Q] [/S] [/L] [/R]

The following are descriptions for each of the LEAD Image File Converter arguments:

  • [Drive:][Source]: Specifies drive, source images directory to convert.
  • [Drive:][Target]: Specifies drive, target images directory for output.
  • /S: Specified to recurse sub-directories of the source directory and convert all the supported images in the root and sub-directories to the target directory. In this case, the directory tree from the source directory will be recreated in the target directory.
    (ex. “C:\SrcDir C:\DestDir /S”).
  • /B: Specified with integer number to change the target images BitsPerPixel. If this flag is not specified, the image(s) will be saved with the original image BPP.
    NOTE: If the specified BPP is not supported for the target file format, then the nearest smaller supported BPP will be used as the target BPP.
    (ex. “C:\SrcDir C:\DestDir /B24”).
  • /F: Specified with integer number based on LEAD defined file formats (E.g. /F2) or with any of LEAD defined file format constant. In this case, you have to insert (=) between the flag and LEAD defined file format (E.g. /F=FILE_GIF) to change the target file format. If this flag is not specified, LEAD_CMP will be used as the default output format.
    NOTE: For a full list of LEAD defined file formats, you can use the (?) with the /F flag (ex. /F?).
    (ex. “C:\SrcDir C:\DestDir /F2” //for GIF).
  • /Q: Specified with integer number in the range 2-255 to change the target image quality factor. If this flag is not specified, 120 will be used as the default value for Qfactor for formats that support compression.
    (ex. “C:\SrcDir C:\DestDir /Q255”).
  • /R: Specified to change the target image dimensions (ex. /R800x600). You can maintain the aspect ratio for the target image by only specifying one dimension or you can enter (?) or (0) as the image width or height argument.
    (ex. #1: “C:\SrcDir C:\DestDir /R???x600” – in this case the width will be automatically calculated maintaining the aspect ratio).
    (ex. #2: “C:\SrcDir C:\DestDir /R800” – in this case the image height will be automatically calculated maintaining the aspect ratio).
  • /L: Specified to create a log file that contains each file conversion result. You can specify the path to where the log file will be created using the /L flag. If you do not specify a location, the default log file will be (C:\ConvLog.txt).
    (ex. C:\SrcDir C:\DestDir /L“C:\LogDir\LogFile.txt” or C:\SrcDir C:\DestDir /L).

LEAD Defined Formats for LEAD Image File Converter

FriendlyName Format# Ext Description
FILE_PCX 1 pcx ZSoft PCX
FILE_GIF 2 gif CompuServe GIF
FILE_TIF 3 tif Tagged Image File Format
FILE_TGA 4 tga Targa
FILE_CMP 5 cmp LEAD CMP
FILE_BMP 6 bmp Windows BMP
FILE_JFIF 10 jpg Jpeg File Interchange Format
FILE_JTIF 11 jpg Jpeg Tag Image File Format
FILE_OS2 14 bmp OS/2 BMP
FILE_WMF 15 wmf Windows Meta File
FILE_EPS 16 eps Encapsulated Post Script
FILE_TIFLZW 17 tif TIF Format with LZW compression
FILE_LEAD 20 cmp LEAD Proprietary
FILE_LEAD1JFIF 21 jpg JPEG 4:1:1
FILE_LEAD1JTIF 22 jpg JPEG 4:1:1
FILE_LEAD2JFIF 23 jpg JPEG 4:2:2
FILE_LEAD2JTIF 24 jpg JPEG 4:2:2
FILE_CCITT 25 tif TIFF CCITT
FILE_LEAD1BIT 26 cmp LEAD 1 bit, lossless compression
FILE_CCITT_GROUP3_1DIM 27 tif CCITT Group3 one dimension
FILE_CCITT_GROUP3_2DIM 28 tif CCITT Group3 two dimensions
FILE_CCITT_GROUP4 29 tif CCITT Group4 two dimensions
FILE_CALS 50 cal CALS Type 1
FILE_MAC 51 mac Macintosh paint
FILE_IMG 52 img GEM Paint
FILE_MSP 53 msp Microsoft Paint
FILE_WPG 54 wpg Word Perfect Graphics
FILE_RAS 55 ras Raster Sun Microsystems
FILE_PCT 56 pct Macintosh Picture
FILE_FAX_G3_1D 66 fax FAX G3 1D
FILE_FAX_G3_2D 67 fax FAX G3 2D
FILE_FAX_G4 68 fax FAX G4
FILE_WFX_G3_1D 69 wfx Winfax G3 1D
FILE_WFX_G4 70 wfx Winfax G4
FILE_ICA_G3_1D 71 ica Image Object Content Architecture-IBM-G31D
FILE_ICA_G3_2D 72 ica Image Object Content Architecture-IBM-G32D
FILE_ICA_G4 73 ica Image Object Content Architecture-IBM-G4
FILE_OS2_2 74 bmp OS/2 BMP Version 2.0
FILE_PNG 75 png CServe PNG
FILE_PSD 76 psd PhotoShop PSD
FILE_RAWICA_G3_1D 77 raw IBM IOCA (Raw) G31D
FILE_RAWICA_G3_2D 78 raw IBM IOCA (Raw) G32D
FILE_RAWICA_G4 79 raw IBM IOCA (Raw) G4
FILE_FPX 80 fpx FlashPix, no compression
FILE_FPX_SINGLE_COLOR 81 fpx FlashPix, compression 'single color' method
FILE_FPX_JPEG 82 fpx FlashPix, compression JPEG
FILE_FPX_JPEG_QFACTOR 83 fpx FlashPix, compression JPEG, specify qFactor
FILE_BMP_RLE 84 bmp compressed Windows BMP
FILE_TIF_CMYK 85 tif TIFF no compression, CMYK data
FILE_TIFLZW_CMYK 86 tif TIFF LZW compression, CMYK data
FILE_TIF_PACKBITS 87 tif TIFF PackBits compression, RGB data
FILE_TIF_PACKBITS_CMYK 88 tif TIFF PackBits compression, CMYK data
FILE_DICOM_GRAY 89 dic DICOM Uncompress Grayscale
FILE_DICOM_COLOR 90 dic DICOM Uncompress Color
FILE_WIN_ICO 91 ico Windows icon
FILE_WIN_CUR 92 cur Windows cursor
FILE_TIF_YCC 93 tif TIFF YCbCr color space, no compression
FILE_TIFLZW_YCC 94 tif TIFF YCbCr color space, LZW compression
FILE_TIF_PACKBITS_YCC 95 tif TIFF YCbCr color space, PackBits compression
FILE_EXIF 96 tif uncompressed RGB Exif file
FILE_EXIF_YCC 97 tif uncompressed YCbCr Exif file
FILE_EXIF_JPEG 98 tif JPEG 4:2:2 compressed Exif file
FILE_AWD 99 awd Microsoft Fax format
FILE_EXIF_JPEG_411 101 tif JPEG 4:1:1 compressed Exif file
FILE_PBM_ASCII 102 pbm Portable Bitmap (PBM) ASCII
FILE_PBM_BINARY 103 pbm Portable Bitmap (PBM) Binary
FILE_PGM_ASCII 104 pgm Portable Greymap (PGM) ASCII
FILE_PGM_BINARY 105 pgm Portable Greymap (PGM) Binary
FILE_PPM_ASCII 106 ppm Portable Pixelmap (PPM) ASCII
FILE_PPM_BINARY 107 ppm Portable Pixelmap (PPM) Binary
FILE_CUT 108 cut Dr Halo Graphics (CUT)
FILE_XPM 109 xpm X Pixel Map
FILE_XBM 110 xbm X BitMap
FILE_IFF_ILBM 111 iff Amiga Interchange Format- ILBM
FILE_CLP 114 clp Windows Clipboard Image
FILE_JBIG 115 jbg Joint Bilevel Image Group
FILE_EMF 116 emf Enhanced Windows Metafile
FILE_ANI 119 ani Windows animated cursor
FILE_INTERGRAPH_RLE 122 itg Intergraph RLE
FILE_DICOM_RLE_GRAY 125 dic DICOM RLE Grayscale
FILE_DICOM_RLE_COLOR 126 dic DICOM RLE Color
FILE_DICOM_JPEG_GRAY 127 dic DICOM JPEG Grayscale
FILE_DICOM_JPEG_COLOR 128 dic DICOM JPEG Color
FILE_CALS4 129 cal CALS Type 4
FILE_CALS2 130 cal CALS Type 2
FILE_CALS3 131 cal CALS Type 3
FILE_XWD10 132 xwd X Window system window dump-10
FILE_XWD11 133 xwd X Window system window dump-11
FILE_FLC 134 flc AutoDesk Animator Pro Animation
FILE_TIF_CMP 138 tif Tagged Interchange File Format-CMP
FILE_TIF_JBIG 139 tif Tagged Interchange File Format-JBIG
FILE_TIF_DXF 140 tif DXF TIFF
FILE_SGI 142 sgi Silicon Graphics Image-Uncompressed
FILE_SGI_RLE 143 sgi Silicon Graphics Image-RLE Compressed
FILE_RAW 153 raw Raw uncompressed data
FILE_JP2 163 jp2 Jpeg2000 stream
FILE_J2K 164 j2k Jpeg2000 file
FILE_CMW 165 cmw Wavelet CMP
FILE_TIF_J2K 166 j2k TIFF Jpeg2000 stream
FILE_TIF_CMW 167 cmw TIFF Wavelet CMP

 

LEADTOOLS Sales: 704-332-5532 | sales@leadtools.com
LEADTOOLS Support: 704-372-9681 |
support@leadtools.com

Products | Downloads | Order | Support | Corporate | News

Copyright © 2008 All Rights Reserved. LEAD Technologies, Inc