Command line options

This is list of all options available in the program. Examples of possible values are written in maroon color.

If you experience any problems with command line, if you get large or corrupted or low quality images, please, feel free to ask us, and we'll try to find solution for your case.

ICPCL.exe -Script [Script name] -Makebat [File] -Source "C:\Original files\*.*" -Dest "C:\Converted files" -Template " [Name]" -Target_opt [Parameter]:[Value] -Sort [Field][Direction] -Convert to BMP [Parameters] Exists:overwrite -Save_opt [Parameter N]:[Value N] -Oper Resize [Parameters] Rotate [Parameters] Mirror [Parameters] Crop [Parameters] Canvas [Parameters] Watermark [Value] Effect [Name] Replace_color [Parameters] Color_profile [Parameters] Page_filter [Parameters] -Sort [Field][Direction]

Options:

-Script
 

-script key specifies the script used when converting images. A script is a file containing a set of conversion parameters: operation list, target format parameters, destination folder and operations with file names. The general appearance of the key is as follows:

-script [Script name]

Script name is a string specifying the needed script. It can contain the link to a preset or user-defined script created with the help of ImageConveter Plus. If the script is located in the same folder with the program, this parameter can contain script name only.

Example:

ICPCL.exe -source "c:\my fotos\*.*" -script "convert to bmp.icp"

Otherwise the parameter should contain file name with its full path.

Example:

ICPCL.exe -source "c:\my fotos\*.*" -script "c:\convert\scripts\convert to bmp.icp"

top

-Makebat

makebat key is used to create a bat-file containing a command line with the list of parameters needed for conversion. This line is ready for immediate execution. Launch this bat-file in future to start conversion process. To create a bat-file it is necessary to use -makebat together with -script and -source keys when launching the program. The generated command line will contain all parameters from the specified script.

The general appearance of the key is as follows:

-makebat [File]

File - this character string contains the name of and path to the output bat-file. If you want to create this file in the folder with the program, you can specify its name only.

Example:

ICPCL.exe -script "c:\convert\scripts\convert to bmp.icp" -source "c:\my fotos\*.*" -makebat "convert to bmp.bat"

If you want to create the file in any other folder, you should specify its full path in the parameter.

Example:

ICPCL.exe -script "c:\convert\scripts\convert to bmp.icp" -source "c:\my fotos\*.*" -makebat "c:\convert\tobmp.bat"

top
-Source

–source key is used to specify source graphics files to be converted. Several masks can be used to specify groups of files. The general appearance of the key is as follows:

–source [Files]

Files - the string specifying the list of files and/or folders. The simplest case is specifying one file. If it is located in the same folder with the program, it is not necessary to specify the path.

You can use the following masks:
<folder path>\*.* - converts all graphic files from folder;
<folder path>\*.bmp - converts all JPEG files from folder;
<folder path>\MyImage.* - converts all files with name MyImage from folder;
<folder path>\MyImage.bmp - converts only MyImage.bmp from folder.

Example:

ICPCL.exe -dest "{My Documents}" -convertto bmp -source "foto.bmp"

ICPCL.exe -dest "{My Documents}" -convertto bmp -source " C:\My Fotos\*.*"


top
-Dest

-dest key is used to specify the destination folder for resulting files. Besides specifying folders directly, you can use special macros in it. Macros are used to refer to default Windows folders. The general appearance of the key is as follows:

-dest [Folder]

Folder is a line specifying the name of the destination folder for resulting files. In simpler cases you can specify a folder directly.

Example:

ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files"

top
-Template

-template key is used to specify a template for generation of resulting file names. Templates can be specified either manually or with the help of various macros used for batch file conversion. The general structure of the key is as follows:

-template [Name]

Name is a line with the template used to generate names of resulting files. The simplest way is to specify file name manually. This way is suitable if you convert single files.

Example:

ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files"

To assign names to files during batch conversion you can use macros which specify values to be contained in file names. A template can contain both macros and permanent lines. The following macros are available in the program:

Macro Description
{Title} Adds corresponding source file name to the resulting file name (corresponding source file name is used to name each resulting file)
{Type} Adds standard extension of the selected graphics format to the resulting file name
{Counter} Adds a counter to the resulting file name. Counter value is increased by 1 when a file is processed (1 digit).
{Counter2-7} Adds a counter to the resulting file name. Counter value is increased by 1 when a file is processed (from 2 to 7 digits).
{Page} Source Image Page Number
{Date} Adds conversion date to the resulting file name. The date is added in month-day-year format.
{Year} Adds conversion year to the resulting file name.
{Month} Adds conversion month to the resulting file name.
{Day} Adds conversion day to the resulting file name.
{Time} Adds conversion time to the resulting file name. Time is added in hour-minute-second format.
{Hour} Adds conversion hour to the resulting file name.
{Minute} Adds conversion minute to the resulting file name.
{Second} Adds conversion second to the resulting file name.
{Bytes} Adds the size of resulting file in bytes to the resulting file name.
{Kb} Adds the size of resulting file in kilobytes to the resulting file name.
{Mb} Adds the size of resulting file in megabytes to the resulting file name.
{Size} Adds the size of resulting image (width and height) to the resulting file name.
{Width} Adds the width of resulting image to the resulting file name.
{Height} adds the height of resulting image to the resulting file name.
{Depth} Adds color depth of resulting image to the resulting file name. Color depth is number of bits used to display one pixel of an image.
top

-Target_opt

-target_opt parameter is used to set additional parameters when creating names for resulting files. Today the program has only one parameter of the kind: the action to be taken if the destination folder already contains a file with the name assigned to the converted file. The general appearance of the key is as follows:

-target_opt [Parameter]:[Value]

Parameter - additional parameter name. Today, the only allowed value is: if_exists.

Value - additional parameter value. If_exists parameter can accept the following values:

  • auto rename - all resulting files whose names coincide with existing file names will be renamed according to the template {user_template}(X).{Image Type}, where Х is the first number creating a unique file name.
  • auto overwrite - all resulting files whose names coincide with existing file names will overwrite existing files.

Example:

ICPCL.exe -source "C:\Original files" -dest "C:\Converted files" -target_opt if_exist:rename

-Sort

-sort parameter is used to sort the list of source files, that is, to specify the order of their conversion. Files can be ordered by file name, file type, file properties and file size. Ordering can be ascending or descending. The general appearance of the key is as follows:

-sort [Field][Direction]

Field - the field used to sort files. Its allowed values are:

  • name - ordering by file name.
  • type - ordering by file type (actually, by extension).
  • properties - ordering by file properties (image size and color depth).
  • size - ordering by file size.

Direction - order direction. Its allowed values are.

  • ascending - ascending order.
  • descending - descending order.

Example:

ICPCL.exe -dest "{My Documents}" -convetto bmp multipage:multipage -source "c:\my fotos" -sort name ascending

Top
Resize

This function is a full-scale instrument for changing image size with a large variety of settings. The following parameters are used to adjust settings of this operation.

  • size - new size
  • units - size units (default - pixels)
  • hdpi - horizontal resolution (default - 1)
  • vdpi - vertical resolution (default - 1)
  • res_units - resolution units (default - inches)
  • keep_prop - keep original image proportions (default - yes)
  • method - rescale method (default - bilinear)
  • nozoom - don't zoom, if source image size smaller (default - no)

size

Size parameter is used to directly specify resulting image size.

size:<X Y>

X - horizontal size (whole positive number).

Y - vertical size (whole negative number).

Example:

-oper Resize size:640 480

units

Units parameter specifies units of sizes specified in size parameter. Its allowed values are:

  • pixels - file size is specified in pixels.
  • percents - file size is specified in percents of source image size.

The default value is: pixels.

Example:

-oper Resize units:percents

hdpi

Hdpi parameter specifies horizontal resolution of the resulting image. It can accept a positive number from 1 to 4096.

Example:

-oper Resize hdpi:72.000000

vdpi

Vdpi parameter specifies horizontal resolution of the resulting image. It can accept a positive number from 1 to 4096.

Example:

-oper Resize vdpi:72.000000

res_units

Res_units parameter specifies units of resolution specifies in hdpi and vdpi parameters. Its allowed values are:

  • inches - image resolution is specified in pixels per inch.
  • cm - image resolution is specified in pixels per centimeter.

The default value is: inches.

Example:

-oper Resize res_units:cm

keep_prop

Use keep_prop parameter to tell the program whether image proportions should be kept when conveting it. Its allowed values are:

  • yes - keep image proportions.
  • no - do not keep image proportions.

The default value is: yes.

Example:

-oper Resize keep_prop:no

method

Method parameter specifies the interpolation algorithm used when increasing image size. Its allowed values are:

  • nearest - fast but rough interpolation method.
  • bilinear - this method provides smoother color transitions when increasing image size. If this value is active, conversion will take more time.

The default value is: bilinear.

Example:

-oper Resize method:nearest

nozoom

Nozoom parameter specifies whether it is necessary to increase image size if it is smaller than that specified in image settings. Its allowed values are:

  • yes - do not increase smaller images.
  • no - increase smaller images.

The default value is: no.

Example:

-oper Resize nozoom:yes


Top
Rotate

This operation is used to rotate images at an arbitrary angle. The following parameters are used to adjust its settings:

  • angle - angle of rotation (default - 0)
  • orient - orientation (default - ccw)
  • color - background color (default - "r:255,g:255,b:255,a:255")

angle

Angle parameter specifies rotation angle (in degrees). It can accept whole numbers from 0 to 360. The default value is: 0.

Example:

-oper Rotate angle:90

orient

Orient parameter specifies the direction of image rotation. Its allowed values are:

  • ccw - counterclockwise rotation.
  • cw - clockwise rotation.

The default value is: ccw.

Example:

-oper Rotate orient:cw

color

Color parameter specifies the color to fill empty spaces after rotation. The color is specified in RGBA mode color:"r:X1,g:X2,b:X3,a:X4" where X1, X2, X3, X4 are whole positive numbers from 0 to 255. The default value is: "r:255,g:255,b:255,a:255" (transparent).

Example:

-oper Rotate color:"r:255,g:255,b:0,a:100"


top
Mirror

Use this operation to flip the source image horizontally or vertically. This operation has one parameter:

flip - flip axis (default - verticaly)

flip

Flip parameter specifies direction of flipping the source image. Its allowed values are:

  • verticaly - the image is flipped vertically.
  • horizontaly - The image is flipped horizontally.

The default value is: verticaly.

Example:

-oper Mirror flip:horizontaly


top
-Convert to BMP

Bitmap is a home Windows raster format, which is used practically for all possible raster data storage. The following parameters are used to adjust settings of this format.

  • bpp - color depth (default - 24 bpp)
  • rows - rows direction (default - "Bottom - Top")
  • quant - quantization (default - 8)
  • dither - dithering (defaylt - yes)

bpp

Bpp parameters specifies the number of bits used to transfer the color of one pixel. Its allowed values are.

  • 1 - 1 bpp (Mono)
  • 4 - 4 bpp (Indexed)
  • 8 - 8 bpp (Indexed)
  • 16565 - 16 bpp (5:6:5, RGB Hi color)
  • 16 - 16 bpp (5:5:5:1, RGB Hi color)
  • 160 - 16 bpp (5:5:5:1, RGBA Hi color)
  • 24 - 24 bpp (True color)
  • 32 - 32 bpp (True color, RGB)
  • 320 - 32 bpp (True color, RGBA)

The default value is: 24.

Example:

-convertto bmp bpp:16

rows

Rows parameter specifies the order of saving rows in the resulting file. Its allowed values are:

  • bottom_top - rows are saved from bottom to top
  • top_bottom - rows are saved from top to bottom

The default value is: top_bottom.

Example:

-convertto bmp rows:top_bottom

quant

Quant parameter reduces the number of distinct colors used in an image while preserving visual image quality. Its value is any whole number from 0 to 8.

The default value is: 8.

Example:

-convertto bmp quant:4

dither

Dither is a form of noise, or 'erroneous' signal or data which is added to sample data to minimize quantization error. Dither parameter can accept two values: yes and no.

The default value is: yes.

Example:

-convertto bmp dither:no

top
Exists:overwrite

Use "exists:overwrite" option to use original file names for converted files.

Example*:

ICPCL.exe –convertto bmp –source "C:\Images\*.*" –dest "C:\out\" exists:overwrite

*ImageConverter Plus command line can not overwrite files if they have "System" or "Read Only" status. Please check status of your files if you can't overwrite them.


Top
-Save_opt

-save_opt key is used to specify additional conversion parameters:

  • allowing/blocking conversion of files from subfolders of the source folder,
  • preserving/ignoring the source folder structure in the resulting folder,
  • opening the resulting folder when conversion is finished,
  • recording/viewing the log file.

The general appearance of the keys is as follows:

-save_opt [Parameter 1]:[Value 1]…[Parameter 4]:[Value 4]

Parameter is additional parameter name. Can accept one of four possible values:

  • сonvert_subfolders - this parameter allows/blocks conversion from subfolders of the existing folder.
  • restore_subfolders - if this parameter is switched on, the resulting folder will contain the structure of the source folder with all its subfolders. If this parameter is switched off, all files from all subfolders of the source folder will be saves in the specified target folder.
  • open_target - switch this parameter on to open the target folder in Windows Explorer when conversion is finished.
  • log - switch this parameter on to create an information file containing conversion details in the target folder.

Value the value of the specified parameter. The value can be either yes (the parameter is switched on) or no (the parameter is switched off).

Example:

ICPCL.exe -source "C:\Original files" -dest "C:\Converted files" -save_opt convert_subfolders:yes restore_subfolders:yes open_target:no log:no

Top
Crop

This operation crops image borders and leaves the selected part of the image. Image size is reduced without changing image resolution, so that images are not distorted. Settings of this poeration are adjusted with the help of the following parameters:

  • method - crop method (default - margins)
  • size - crop sizes (default - 0 0 0 0)
  • color - color sample for autocrop (default - "r:255,g:255,b:255,a:255")
  • tolerance - tolerance value for autocrop (default - 0)

method

Method parameter specifies the mode of Crop image operation. This parameter specifies whether other parameters should be set. Its allowed values are:

  • margins - this parameter specifies that the number of pixels set in size parameter shoud be cropped from every side of the image.

Example:

-oper Crop method:margins

  • rect_2p - this mode lets specify a rectangle. The program will crop all image parts not included into this rectangle. The rectangle is set with the help of size parameter with coordinates of the top left and bottom right corners.

Example:

-oper Crop method:rect_2p

  • rect_pwh - this mode lets specify a rectangle. The program will crop all image parts not included into this rectangle. The rectangle is set with the help of size parameter with coordinates of the top left corner, width and height.

Example:

-oper Crop method:rect_pwh

  • autocrop - this mode lets remove monochromatic edges from images of various size. The area to be cropped is detected auromatically for every image by color of its margins. Use color and tolerance parameters to adjust crop settings for this mode.

The default value is: margins.

Example:

-oper Crop method:autocrop

size

Size parameter value depends on method parameter value.

size:<X1 X2 X3 X4>

Where X1, X2, X3, X4 are whole positive numbers including 0.

  • method:margins - crop sizes parameter specifies the width of the margin (in pixels) cropped from each side of the image: left top right bottom.

Example:

-oper Crop size:100 50 100 50

  • method:rect_2p - crop sizes parameter specifies the coordinates of the top left and bottom right corners of the rectangle: left top right bottom.

Example:

-oper Crop size:0 0 400 300

  • method:rect_2p - crop sizes parameter specifies the coordinates of the top left corner of the rectangle, its width and height: left top width heigth.

Example:

-oper Crop size:0 0 300 200

The default value is: 0 0 0 0.

color

Color parameter specifies the color of the margins to be cropped in autocrop mode. The color is specified in RGB mode.

color:"r:X1,g:X2,b:X3,a:X4"

Where X1, X2, X3, X4 are whole positive numbers from 0 to 255.

The default value is: "r:255,g:255,b:255,a:255" (transparent).

Example:

-oper Crop color:"r:255,g:255,b:255,a:100"

tolerance

Tolerance parameter specifies the allowed deviation from the color specified in color parameter. Its values are whole numbers from 0 to 100.

The default value is: 0.

Example:

-oper Crop tolerance:5


Top
Canvas

This operation is used to change image size without scaling. Image size can be reduced by cropping its edges according to the selected algorithm, or increased by adding a border of the specified color. The operation settings are adjusted with the help of the following parameters.

  • width - Canvas width (default - 0)
  • height - Canvas height (default - 0)
  • relative - Canvas relative size option (default - no)
  • anchor - Canvas anchor option (default - center)
  • color - Canvas border color (default - transparent)

width

Width parameter specifies resulting image width, or width of the added border (in pixels) regarding the value of relative size option parameter. Its allowed values are whole positive numbers from 1 to 20000.

The default value is: 0.

Example:

-oper Canvas width:200

height

Height parameter specifies resulting image height, or height of the added border (in pixels) regarding the value of relative size option parameter. Its allowed values are whole positive numbers from 1 to 20000.

The default value is: 0.

Example:

-oper Canvas heigth:100

relative

Relative parameter specifies operation mode. Its allowed values are:

  • yes - in this mode, canvas width and canvas height parameter values contain border size. Source image size remains the same and a border of specified width and height is added to it
  • no - in this mode, canvas width and canvas height parameter values contain resulting image size. When performing this operation, all larger images are cropped while smaller ones are provided with a border.

The default value is: no.

Example:

-oper Canvas relative:yes

anchor

Anchor parameter specifies sides of image cropping/bordering. Its allowed values are:

  • сenter - cropping/bordering is performed regarding the center of the image.
  • bottom - cropping/bordering is performed regarding the center of the image bottom edge.
  • bottom_left - cropping/bordering is performed regarding the image bottom left angle.
  • left - cropping/bordering is performed regarding the center of the image left edge.
  • top_left - cropping/bordering is performed regarding the image top left angle.
  • top - cropping/bordering is performed regarding the center of the image top edge.
  • top_right - cropping/bordering is performed regarding the image top right angle.
  • right - cropping/bordering is performed regarding the center of the image right edge.
  • bottom_right - cropping/bordering is performed regarding the image bottom right angle.

The default value is: center.

Example:

-oper Canvas anchor:bottom

color

Color parameter specifies border color. The color is specified in RGBA mode.

color:"r:X1,g:X2,b:X3,a:X4"

where X1, X2, X3, X4, are whole positive numbers from 0 to 255.

The default value is: "r:255,g:255,b:255,a:255" (transparent).

Example:

-oper Canvas color:"r:0,g:255,b:0,a:100"

top
Watermark

This operation is used to apply a watermark (a signature, a trademark, etc.) to source images. The following parameters are used to adjust its settings.

  • image - path to watermark image
  • halign - horizontal alignment (default - left)
  • valign - vertical alignment (default - top)
  • offset_x - horizontal offset (default - 0)
  • offset_y - vertical offset (default - 0)
  • method - blending method (default - alpha_blend)

image

Image parameter specifies the image to be applied to source images. It contains the full path to the needed file and is a required parameter for this operation.

Example:

-oper Watermark image:"c:\mark.bmp"

halign

Halign parameter specifies horizontal alignment of the image applied as watermark. This parameter can have the following values.

  • left - the applied image is aligned by left edge.
  • right - the applied image is aligned by right edge.
  • center - the applied image is aligned by center.

The default value is: left.

Example:

-oper Watermark halign:right

valign

Valign specifies vertical alignment of the image applied as watermark. This parameter can have the following values.

  • top - the applied image is aligned by top edge.
  • bottom - the applied image is aligned by bottom edge.
  • center - the applied image is aligned by center.

The default value is: top.

Example:

-oper Watermark halign:right

offset_x

Offset_xt parameter specifies horizontal offset (in pixels) of the applied image regarding the alignment point specified in horizontal alignment parameter. It can be a whole positive or negative number.

The default value is: 0.

Example:

-oper Watermark offset_x:20

offset_y

Offset_y parameter specifies vertical offset (in pixels) of the applied image regarding the alignment point specified in vertical alignment parameter. It can be a whole positive or negative number.

The default value is: 0.

Example:

-oper Watermark offset_y:-10

method

Method parameter specifies a method of applying watermark to the source image. This parameter can have the following values.

  • alpha_blend - select this method to apply watermark regarding transparency of the source image.
  • overdraw - select this method to apply watermark disregarding transparency of the source image.

The default value is: alpha_blend.

Example:

-oper Watermark method:overdraw

top

Effect

This operation is used to apply one of the effects listed below to the processed image. To use several effects in one script, you should add several operations. Each of these operations will be responsible for one effect. The operation is adjusted with the help of one parameter:

effect - color effect to apply (default - blur)

effect

Effect parameter specifies the effect to be applied to source images. Its allowed values are:

  • blur - blur filters soften a selection or a photo making them suitable for retouching. They smooth transitions by averaging the pixels next to the hard edges of defined lines and shaded areas in a photo. Blur filters eliminate noise where significant color transitions occur in a photo. Blur filters smooth transitions by averaging the pixels next to the hard edges of defined lines and shaded areas. Apply Blur filter to photos to reduce noise effect or smooth grainy photos created with high photosensitivity.
  • sharpen - sharpen filter effect is opposite to Blur filter effect. Still, you cannot return initial sharpness to the image blurred with the help of Blur effect, as algorithms of these functions are different. Anyway, Sharpen filter does what it is designed to do. It sharpens images and improves their contrast.
  • emboss - emboss is a decorative effect designed to "rise" the main part of the image relative to its background. This filter locates contrast lines of the image and adds shadows to them to imitate "depressed" areas. The lighter is the area, the more "depressed" it will appear.
  • water color - water color effect is a decorative one. Use it to make your photos look like water color paintings. This filter blurs and equalizes large parts of color areas with uniform color while keeping most contrasting transitions. It goes without saying that the water color effect cannot compete with works of an artist. Still, it can be applied successfully if the photo contains few small elements.
  • smoothing noise - smoothing noise effect is mostly used to smooth images with limited color range, e.g. GIF files or 1 bit images. Still, this effect can also be applied to full color images. This filter adds noise to contrast edges of the image; the contrast of added pixels is similar to that of the original.
  • maximum - maximum effect are rather interesting. Maximum effect increases brightness and size of light pixels of the whole image. Combine this effet with other filters to create fantasy-style images.
  • minimum - minimum effect are rather interesting. Minimum effect reduces brightness and increases size of dark pixels of the whole image. Combine this effet with other filters to create fantasy-style images.
  • negative - negative effect is used to invert image colors and imitate a photo negative. Apply this effect to transform image colors to unconventional ones. E.g. shades of blue will become shades of red and light shades will become dark. Using this effect together with other filters is advisable if you want to achieve really interesting results.
  • grayscale - grayscale filter transforms the image in such a way that it contains information about black color level only. 0 corresponds to white color, 255 to black color, all other values correspond to various gradations of gray color. The only channel of Grayscale corresponds to black-and-white image. Besides black-and-white images, Grayscale is also applied to create various effects, transparency masks, alpha channels and when selecting images. Also, any color channel can be presented as black and white.
  • sepia - sepia effect is a decorative one. Use it to make your photos look older than they really are. Actually, this effect transforms image spectrum to brownish which imitates faded photos and yellowish photo paper. Use Sepia filter together with other effects to achieve interesting original results.

The default value is: blur.

Example:

-oper Effect effect:sepia

Replace_color

This operation is used if it is necessary to replace a color of the source image with another color, including transparency (alpha component). The following parameters are used to adjust settings of this operation:

  • src_color - source color (default - transparent)
  • dest_color - destination color (default - transparent)
  • tolerance - color tolerance (default - 0)
  • smooth - use smoothing (default - yes)

src_color

Src_color parameter specifies the color to be replaced with another color. The color is specified in RGBA mode.

color:"r:X1,g:X2,b:X3,a:X4"

where X1, X2, X3, X4 are whole positive numbers from 0 to 255.

The default value is: "r:255,g:255,b:255,a:255" (transparent).

Example:

-oper ReplaceColor src_color:"r:255,g:255,b:0,a:100"

dest_color

Dest_color parameter specifies the color which will replace the source color. The color is specified in RGBA mode.

color:"r:X1,g:X2,b:X3,a:X4"

where X1, X2, X3, X4 are whole positive numbers from 0 to 255.

The default value is: "r:255,g:255,b:255,a:255" (transparent).

Example:

-oper ReplaceColor dest_color:"r:0,g:255,b:0,a:100"

tolerance

Tolerance parameter specifies the percentage of allowed deviation from the color specified in src_color parameter. Its allowed values are whole numbers from 0 to 100.

The default value is: 0.

Example:

-oper ReplaceColor tolerance:5

smooth

Smooth parameter tells the program to smooth color transitions in modified areas of the image. Its allowed values are:

  • yes - smooth color transitions.
  • no - do not smooth color transitions.

The default value is: yes.

Example:

-oper ReplaceColor smooth:no

Color_profile

Color profiles are data sets used to transform values of color range. They include information on color, hue, saturation and brightness. Color profiles are used to describe compliance of colors of input and output devices in color model terms. Use color profile operation to make sure that graphics files received from a device are correctly displayed or printed on other devices in full compliance with source images. This operation is used to apply internal or external color profiles to images. Adjust its settings with the help of the following parameters:

  • mode - color profile mode (default - ignore)
  • profile_path - path to external profile

mode

Mode parameter specifies operation mode. Its allowed values are:

  • ignore - ignore color profiles contained in the files.
  • builtin - transform images in compliance with color profiles contained in them.
  • external - transform images in compliance with an external color profile.

Mode default value is: ignore.

Example:

-oper ColorProfile mode:builtin

profile_path

Profile_path parameter specifies the path to an external color profile. It is a string containing full path to the file with the needed profile.

Example:

-oper ColorProfile profile_path:"c:\WideGamutRGB.icc"

Page_filter

This operation is used to convert separate pages of multipage files. Its settings are adjusted with the help of the following parameters.

  • pages_mode - page range (default - all)
  • pages - pages (default "")
  • skip_first - skip first page (default - no)
  • skip_last - skip last page (default - no)
  • multipage_only - apply to multipage files only (default - yes)

pages_mode

Pages_mode parameter specifies pages to be converted. Its allowed values are:

  • all - convert all pages.
  • odd - convert odd pages only.
  • even - convert even pages only.
  • custom - convert pages whose numbers are within the limits of the interval specified in pages parameter.

The default value is: all

Example:

-oper PageFilter pages_mode:even

pages

Use pages parameter to specify numbers of pages to be converted or their intervals. Its value is a character string containing page numbers separated with commas. Intervals are specified with the help of hyphens. The syntax of this parameter corresponds with the syntax of print dialog boxes in Microsoft Office applications.

The default value is: none.

Example:

-oper PageFilter pages:"1,3,7-9"

skip_first

Skip_first parameter specifies whether the program will convert the first page of the source file. The following values are allowed.

  • yes - the program won't convert the first page of the source file.
  • no - the program will convert the first page of the source file.

The default value is: no.

Example:

-oper PageFilter skip_first:yes

skip_last

Skip_last parameter specifies whether the program will convert the last page of the source file. The following values are allowed.

  • yes - the program won't convert the last page of the source file.
  • no - the program will convert the last page of the source file.

The default value is: no.

Example:

-oper PageFilter skip_last:yes

multipage_only

Multipage_only parameter specifies whether this operation will be applied to source one-page files. The following values are allowed.

  • yes - the operation will be performed for source multipage files only.
  • no - the operation will be performed for all files.

The default value is: yes

Example:

-oper PageFilter multipage_only:no


-Sort

-sort parameter is used to sort the list of source files, that is, to specify the order of their conversion. Files can be ordered by file name, file type, file properties and file size. Ordering can be ascending or descending. The general appearance of the key is as follows:

-sort [Field][Direction]

Field - the field used to sort files. Its allowed values are:

  • name - ordering by file name.
  • type - ordering by file type (actually, by extension).
  • properties - ordering by file properties (image size and color depth).
  • size - ordering by file size.

Direction - order direction. Its allowed values are.

  • ascending - ascending order.
  • descending - descending order.