Convert Image Files Via Command Line With Total Image Converter
Usage: ImageConverter.exe <source> <destination> <options>
If you have path with spaces, use quotation marks.
By the way You can use macroses in the Destination path
- <DATE[:format]> - current date, default format is yyyymmdd
- <TIME[:format]> - current time, default format hhmmss
For example: destination C:\<DATE>_<TIME:hhmm> produce file C:\20110411_1031Options:
- -log - <Log file name> Don`t show errors. Write them to the log file
- -verbosity - Log file verbosity
- error - Write to log file only errors (default)
- detail - Write detailed log file
- -list - File with files mask to convert
- -Recurse - Include subfolders
- -do - Delete originals
- -kfs - Keep Folder Structure
- -cimt - Combine images to multipage TIFF
- none - Every image to separate file
- onefile - All images to one file
- folder - Separate files by folders
- name - Separate files by common name part
- blank - Separate files by blank page
- -npr - Range you want to analyze for grouping files by name
- -c - Convert action
- bmp - convert to windows bitmap
- jpg - convert to jpeg file
- j2k - convert to jpeg 2000 file
- ico - convert to ico file
- tif - convert to tiff file
- gif - convert to gif file
- png - convert to png file
- pcx - convert to pcx file
- pxm - convert to pxm file (pgm,ppm,pbm)
- tga - convert to targa file
- raw - convert to raw bitmap file (not is camera RAW)
- pdf - convert to Adobe Acrobat PDF
- -s - Resize to <Width>x<Height>
- -m - Resize method
- n - no resize
- s - stretch
- t - thumbnail
- f - fit
- -crop - Crop to <Left>x<Top>-<Right>x<Bottom>
- -o - Rotate
- tr -
top / right side - br -
bottom / right side - bl -
bottom / left side - lt -
left side / top - rt -
right side / top - rb -
right side / bottom - lb -
left side / bottom - ue - Use EXIF information (if exists)
- -cl - BMP Colors
- bw - black-and-white
- gray - grayscale
- 16 - 16 colors
- 256 - 256 colors
- true - true color
- -tc - Tiff file compression
- auto - Select best compression for every page
- unc - uncompressed TIFF
- lzw - LZW compression
- rle - RLE compression (packbits)
- jpg - JPEG compression
- bhc - Bilevel Huffman compression (CCITT1D)
- bgm - Bilevel Group 3 CCITT compression, monodimensional (G3FAX1D)
- bgb - Bilevel Group 3 CCITT compression, bidimensional (G3FAX2D)
- bg4 - Bilevel Group 4 CCITT compression, bidimensional (G4FAX)
- zip - ZIP compression (non TIFF standard)
- dfl - DEFLATE, Adobe ZIP compression (non TIFF standard)
- -tp - TIFF Photometric interpretation
- wz - white is zero
- bz - black is zero
- rgb - RGB
- pal - RGB palette
- mask - Transparent mask
- cmyk - CMYK
- ycbcr - YCBCR
- cielab - CIELAB
- -jq - JPEG compression quality
- -jcs - JPEG color space
- rgb - RGB
- gray - GRAY
- ycbcr - YCbCr
- cmyk - CMYK
- ycbcrk - YCbCrK
- -jr - J2K compression rate (1-100)
- -rh - RAW Header size
- -rc - Channel order
- -rp - RAW Planes order
- i - Interleaved
- p - Planar
- -ra - Row align
- -tbg - Background color for transparent images
- -pc - PDF compression
- unc - no compression
- rle - run length compression
- g4 - G4Fax (only black/white images)
- g3 - G3Fax (only black/white images)
- jpg - DCT-jpeg (only color images)
- lzw - LZW compression (for color and black/white images)
- -pn - PDF Paper name
- -ps - PDF Paper size x (for custom page name)
- -po - PDF Paper orientation
- p - Portrait
- l - Landscape
- -pdf_title - PDF document title
- -pdf_subject - PDF document subject
- -pdf_author - PDF document author
- -pdf_keywords - PDF document keywords
- -wif - Watermark image file name
- -wit - Watermark image transparency
- -wip - Watermark image position
- tl - Top Left
- tr - Top Right
- bl - Bottom Left
- br - Bottom Right
- -wtc - Watermark comment
- -wtcp - Watermark comment position
- tl - Top Left
- t - Top
- tr - Top Right
- bl - Bottom Left
- b - Bottom
- br - Bottom Right
- c - Center
- -wtcs - Watermark comment space
- -wtcf - Watermark comment font "Font Name,Size,Color(HTML Style),Style(BISU)"
wtcf "Arial,10,Red,BI" - font Arial, size - 10pt, color - red and style - Bold, Italic
- -mft - Picture mask frame
- n - No frame
- i - Internal frame (use key mfi to set frame index)
- f - Use mask frame from external file (mff to set frame file name
- -mfi - Internal mask frame index
- -mff - Mask frame file name
- -mfii - Use mask frame inside image
- -mfsd - Mask frame space x
Examples:
- ImageConverter.exe c:\Folder1\*.jpg c:\Folder2\ -cbmp -r -s800x600 -rms
This means that all the jpg files from Folder1 including subfolders must be converted to bmp files in Folder2, and resized to 800x600 (resize method - stretch).
- ImageConverter.exe -list List.txt C:\Jpeg\ -cJPG
Convert all files from file list List.txt to JPEG and place them to C:\JPEG\
- ImageConverter.exe C:\Source C:\Combined -ci onefile -s 200x300 -o ue -tc bg4
Take the files from the folder Source, combine all images to one file, resize to 200x300, rotate according to EXIF info and compress to Bilevel 4.
- ImageConverter.exe c:\Source.bmp c:\Dest.pgm -cpxm
Convert Source.bmp into Dest.pgm format