Command-Line Options

PicSwitcher version 2.0 adds the capability of performing image conversion via the command line.  The basic format of the command line is:

PicSwitcher.exe [ImageFile1.ext] {ImageFile2.ext} {options}

Wildcards are supported for the ImageFile.ext parameters.  For example, to convert all JPG files in C:\Temp to PNGs while resizing to 50% of the original size:

PicSwitcher.exe C:\Temp\*.jpg /output=C:\Temp /format=PNG /units=percent /H=50 /V=50

Here are a list of the supported options:

Option Parameters Description Example
/FORMAT=[format] [format] is one of the supported file formats Specifies the output file format /FORMAT=JPG
/UNITS=[unit] [unit] is one of: percent, pixels, inches, cm, points Specifies the resizing units /UNITS=pixels
/H=[size] [size] = new horizontal size Specifies the new horizontal size in the units specified.  Make sure to include /UNITS first to guarantee the proper units are used. /H=640
/V=[size] [size] = new vertical size Specifies the new vertical size.  Include /UNITS first /V=480
/FIT or /FITKEEP   Sets resize mode to Keep Aspect Ratio, Keep Size /FIT
/FITRESIZE   Sets resize mode to Keep Aspect Ratio, Adjust Size /FITRESIZE
/STRETCH   Sets resize mode to Stretch to Fit /STRETCH
/SETMAX   Sets resize mode to Set Maximum Size /SETMAX
/TILE   Sets resize mode to Tile, Lock Upper Left /TILE
/TILECENTER   Sets resize mode to Tile, Lock Centers /TILECENTER
/OUTPUT=[dir] or
/OUTPUTDIR=[dir]
[dir]=output directory Sets the output directory for converted images /OUTPUTDIR=C:\Windows\Temp
/CONVERT   Tells PicSwitcher to convert the images automatically /CONVERT
/QUALITY=[value] [value]=10 to 100 Sets the JPEG output quality /QUALITY=75
/PROGRESSIVE   Sets the output mode for JPEG and PNG to Progressive /PROGRESSIVE
/BITS=[bits] [bits]=1,4,8 or 24 Sets the GIF and BMP bit depth /BITS=4
/COMPRESSION=[type] For TIF: [type]=0,None,PACKBITS,
CCITT31D,CCITT32D,CCITT4, or ZLIB
For PNG: [type]=LOW,MEDIUM or HIGH
Sets the output compression level /COMPRESSION=LOW
/DITHER or /NODITHER   Turns dithering on or off /DITHER
/BACKGROUND=[size]
/OUTSIDE=[size]
/BORDER=[size]
/INSIDE=[size]
[size]=number of pixels Sets the size of the background border or  outside / border / inside  bevel /BACKGROUND=20
/OUTSIDE=5
/BORDER=5
/INSIDE=5
/BLEND or /NOBLEND   Turns on or off bevel color blending /BLEND
/BACKCOLOR=[color]
/DARKCOLOR=[color]
/BORDERCOLOR=[color]
/LIGHTCOLOR=[color]
[color]=RRGGBB hex value or one of (red, green, blue, yellow, orange, purple, brown, black, white, gray, silver, maroon, olive, navy, teal, lime, fuchsia, aqua, magenta, cyan) Sets the color of the selected background / dark, border, or light bevel /BACKCOLOR=gray
/DARKCOLOR=2080F0
/BORDERCOLOR=$DDDDDD
/LIGHTCOLOR=white
/TRANSPARENTMODE=[mode] [mode]=any combination of O,B,I for fully transparent Outside, Border, Inside or o,b,i fr semi-transparent Outside, Border, Inside Sets the transparency level for the bevels /TRANSPARENTMODE=Ob
/BORDERMODE=[mode] [mode] = 0: Canvas Outer Edge
1: Outside Image Border
2: Centered Over Border
3: Inside Image Border
Sets the location of the bevels relative to the image /BORDERMODE=3
/ROTATE=[rotation] [rotation]=0,90.180.270 Sets the image rotation mode /ROTATE=90
/ICONSIZE=[size] [size]=16,32,48,64,96 Sets the output size of the ICO format /ICONSIZE=32
/OVERWRITE   Tells PicSwitcher to overwrite existing files /OVERWRITE
/SKIP   Tells PicSwitcher to skip conversion of a file if an output file of the same name already exists. /SKIP