2TIFF Converter Command Line Syntax

2TIFF is the command line tool that can be efficiently used for converting different types of files into the TIFF format preserving maximum quality, original file settings when necessary, and offering the rich choice of possible image effects or other file processing features. 2TIFF allows flexibility in file processing and can process hundreds if not thousands files at the same time. More advantages that 2TIFF offers: image transformation algorithm selection, output folder selection, file name selection.

2TIFF is widely used by IT professionals and is in demand with large corporations or any businesses that need to work with a large number of files on a daily basis.

2TIFF is easy to use. To run the program, click Start or press Win+R on the Windows menu. Then specific command should be typed, and to fulfill the command just click Enter.

Take a look at some command line examples and their main characteristics.

2TIFF command line structure looks like:

2tiff.exe -<switch1> [param1:value paramN:value] -<switchN> [parameters]

2TIFF switches

-src - The source folder path with search mask or file path that should be converted. In case there is a necessity to convert a list of files, it should be saved as a text. To convert it, use @ before the file path.
-dst - Path to the destination folder.
-oper - Operations on the file name. By default, it remains blank.
-options - Common 2TIFF options with parameters. By default, it is blank.

2TIFF command line examples:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -options scansf:no

2tiff.exe -src "C:\in\*.pdf" -dst "C:\out" -oper Resize size:"800 600"

2tiff.exe -src "@C:\in\list.txt" -dst "C:\out" -oper TextWatermark text:"Top Secret"

2TIFF common options with parameters

pages - Identifies range of pages. Default setting: all pages will be converted without any exceptions.
scansf - Scanning source folder with all its subfolders. The default value is "yes".
keepsf - Restore structure of subfolders in the destination folder. Default value is "yes".
log - Create log file in folder "%TEMP%\2TIFF_Log". Default value is "no".
overwrite - Overwrite existing output file. Default value is "no".
delsrc - Remove the source file after the conversion. Default value is "no".
template - Output file name template. Default value is "{Title}.jpg". Available macros: {Title}, {Page}, {Ext}.
sort - Convert files in sorted order. Default value is "unsorted". Available values: unsorted, name, type, size, namedesc, typedesc, sizedesc.
silent - Suppress console output. Default value is "no".

2TIFF usage command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -options pages:"1,3,5-12" scansf:no keepsf:no log:yes overwrite:yes delsrc:yes template:"{Title}-page{Page}.tif" sort:name silent:yes

TIFF format parameters for converted files

bpp - TIFF image color depth from list: 64, 48, 32, 320, 24, 8, 4, 1. Default value is "24" bithe per pixel.
compression - TIFF image compression type from the list: none, rle, fax3, fax4, lzw, flate, jpego, jbig, jpeg, packbits. Default value is "flate".
jpeg_quality - TIFF image JPEG compression quality from range: 20..100. Default value is "85".
jpeg_sample - TIFF image JPEG compression sample from list: 111, 422, 411. Default value is "111".
compression_level - TIFF image Flate compression level from range: 0..9. Default value is "5".
multipage - TIFF image multipage option: "split", "asis" or "append". Default value is "asis".
byte_order - TIFF image byte order: "little_endian" or "big_endian". Default value is "little_endian".
thumbnail - Embend thumbnail is TIFF image file. Default value is "no".
strip - TIFF image strip structure: "multi", "single" or "tiled". Default value is "multi".
exif - Save EXIF information in TIFF image. Default value is "yes".
iptc - Save IPTC information in TIFF image. Default value is "yes".
big_tiff - Convert image to BigTIFF file format. Default value is "no".
quant - Image quantization level value from range 8..0. Default value is "0".
dither - Use dithering. Default value is "yes".
photometric_mono - Photometric mono option from list: "asis", "min_is_white", "min_is_black". Default value is "asis".
fill_order - Fill order option: "msb2lsb" or "lsb2msb". Default value is "msb2lsb".
predictor - Use predictor in LZW and Flate compressions. Default value is "yes".

Command line example for converting documents and images to black and white TIFF:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -tiff bpp:1 compression:fax4 multipage:split dither:no

Command line example for combining all documents and images to single multipage TIFF file:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -tiff multipage:append -options template:Combination.tif

Image processing operations

Crop image

method - Method of image cropping. Available values: margins, rect2p, rect_pwh or autocrop.
left - Identifying the left margin in pixels. Default value is: "0".
top - Cropping the top margin. Default value is: "0".
right - Cropping the right margin for "margins" and "rect2p" methods. Default value is: "0".
bottom - Cropping the bottom margin for "margins" and "rect2p" method. Default value is: "0".
width - Width of cropping rectangle for "rect_pwh" method. Default value is: "0".
height - Height of cropping rectangle for "rect_pwh" method. Default value is: "0".
color - Color code applied for the "autocrop" method. Default value is: "r:255,g:255,b:255,a:255"
tolerance - Color tolerance value for "autocrop" method from range 0..100%. Default value is: "0"

Crop image command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Crop method:margins left:100 top:100 right:200 bottom:200

Mirror image

flip - identifies the direction of flipping. Available values: vertically, horizontally or both ways.

Mirror image command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Mirror flip:verticaly

Rasterize vector file

res - Identifies the resolution for image rasterization. Available range: from 72 DPI to 4096 DPI or DPC. Default value is: "200".
units - Units of resolution. Available values: DPI (dots per inch) or DPC (dots per centimeter). Default value is: "DPI".

PDF to TIFF command line example:

2tiff.exe -src "C:\in\*.pdf" -dst "C:\out" -oper Rasterize res:300

Resize image

size - New size limits of the image considering its width and height.
units - Measurement of the image size units. Available values: pixels or percentage. Default value is: "pixels".
keepprop - Keeping original image proportions. Default value is: "yes".
method - Method of image resize. Available values: neighbour or bilinear. Default value is: "bilinear".
nozoom - Skip resize if the original image size is smaller. Default value is: "no".
fmode - Fit mode. Identify whether the image should be scaled, fitted in size, of filled in size characterizing the type of resize. Available values: scale, fit_in_size, fill_in_size, fit_width, fit_height. Default value is: "scale".
falign - Fit alignment. Available values: center, left_top, right_bottom. Default value is: "center".

Resize image command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Resize size:"80 60" units:percents keepprop:no method:neighbour nozoom:yes

Image rotation

angle - Rotation angle. Available range: from 0 up to 360 degrees.
direction - direction of image rotation. Available values: CCW and CW. Default value is: "CCW".
color - Background color. Default value is: "r:255,g:255,b:255"

Image rotation command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Rotate angle:45 color:"r:255,g:0,b:255"

Text watermark

pages - Pages range in multipage file. Default setting: the watermark will be placed onto every page.
text - Watermark text string.
font - Font of a watermark.. Default value is: "Arial".
fontsize - Size of a watermark font. Default value is: "12".
bold - Use BOLD font. Default value is: "no".
italic - Use ITALIC font. Default value is: "no".
underline - Use UNDERLINED font. Default value is: "no".
halign - Text string horizontal alignment. Available values: left, center, right. Default value is: "left".
valign - Text string vertical alignment. Available values: top, center, bottom. Default value is: "top".
offx - Text string horizontal offset. Default value is: "0".
offy - Text string vertical offset. Default value is: "0".
color - Text color. Default value is: "r:0,g:0,b:0,a:255".
bkcolor - Text background color. Default value is: "r:255,g:255,b:255,a:255".
angle - Angle of rotation in degrees. Default value is: "0".
direction - Direction of rotation. Available values: CCW and CW. Default value is: "CCW".
border - Text watermark border. Default value is: "no".
fit - Fit text into image. Default value is: "no".
method - Text blending method. Available values: alphablend and overdraw. Default value is: "alphablend".

Text watermarking images command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper TextWatermark pages:"1,3-5" text:"(C) John Smith" font:"Verdana" fontsize:25 bold:yes italic:yes underline:yes halign:center valign:center offx:10 offy:15 color:"r:255,g:0,b:0,a:128" bkcolor:"r:0,g:255,b:0,a:128" angle:45 border:yes

Picture watermark

pages - Identifies the range of pages on which the watermark will be placed. By default, the watermark will be placed onto every page.
image - Path to the image serving as a watermark.
halign - Picture watermark horizontal alignment. Available values: left, center, right. Default value is: "left".
valign - Picture watermark vertical alignment. Available values: top, center, bottom. Default value is: "top".
offx - Picture watermark horizontal offset. Default value is: "0".
offy - Picture watermark vertical offset. Default value is: "0".
method - Text blending method. Available values: alphablend and overdraw. Default value is: "alphablend".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper watermark pages:"1,3-5" image:"C:\my logo.png" halign:center valign:center offx:10 offy:15

Grayscale

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Grayscale

Unsharpen mask

radius from range 0..250 pixels. Default value is: "5".
amount from range 0..500 pixels. Default value is: "100".
threshold from range 0..255. Default value is: "3".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Sharpen radius:10 amount:25 threshold:5

Autolevels

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Autolevels

Blur

radius from range 0..250 pixels. Default value is: "5".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Blur radius:10

Contrast

percent - contrast correction value from range -100..100%. Default value is: "0".
auto - automatically contrast correction. Default value is: "yes".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Contrast percent:-10 auto:no

Gamma correction

percent - gamma correction value from range -100..100%. Default value is: "1".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Gamma percent:-10

Brightness

percent - brightness correction value from range -100..100%. Default value is: "10".

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Brightness percent:-10

Sepia

Application of a sepia effect.

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Sepia

Smoothing noise

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper Smoothingnoise

Drop Color

src_color - source color that should be replaced: "red", "green" or "blue".
dst_color - destination color in RGBA format: "r:(0-255),g:(0-255),b:(0-255),a:(0-255)"

Command line example:

2tiff.exe -src "C:\in\*.*" -dst "C:\out" -oper dropcolor src_color:green dst_color:"r:255,g:255,b:255:a255"