Batch script commands


Category: Image

WiseImage command(s): Image > AutoCorrect

Description: Applies a group of operations to image(s).

Format:
/AutoCorrect[[ ERN]:"<raster name>"]

Description of Parameters:
ERN - name of the raster for automatic estimation and detection. It may be omitted if the document consists of one raster image.

Example:
/AutoCorrect:"cs_cam"

See also: Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To ClosestPaper, Fit To Paper, Hole Remover, Rotate At 180, Rotate At 90, Rotate At 270, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Binarization

Description: Binarizes the image using the current binarization parameters or parameters defined by the specified template. If template file is not stored in the default the template directory you must define a path to it.

Format:
/Binarize[[ TEMPL]:"<template file>"]

Example:
/Binarize:"map-rivers.tpl"

See also: Color Reduction, Color Separation

 

 

Category: Image

WiseImage command(s): Image > Calibration

Description: Calibrates the image using the current calibration parameters or parameters defined by the specified template. If the template file is not stored in the default template directory you must define a path to it.

Format:
/Calibrate[[ TEMPL]:"<template file>"]

Example:
/Calibrate:"My_calibration.tpl"

See also: Correct By Paper Frame

 

 

Category: Image

WiseImage command(s): Image > Resample

Description: Scales the image dimensions in pixels by changing its resolution in dot-per-inch. The image dimensions in millimeters or inches will not be changed.

Format
/ChangeDPI[ DPI]:<dpi_value>

Example:
; The current image resolution is 150 dpi and it has dimensions
; 1500x1500 pixels or 10x10 inches
/ChangeDPI:300
; The image resolution is 300 dpi and it has dimensions
; 3000x3000 pixels or 10x10 inches

See also: Change Image Size, ChangeSize, Change Size In Pixels, Resize Image, Fit To Closest Paper, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Change Size

Description: Takes the original image and places it unchanged on a new image of the specified dimensions with the specified alignment.

Format:
/ChangeImageSize WIDTH:<distance> HEIGHT:<distance> [ALIGN:"<align_type>"] [LEFT:<offset>] [TOP:<offset>] [RIGHT:<offset>] [BOTTOM:<offset>]

Description of Parameters:
WIDTH
Width of the new image in the current linear units.
HEIGHT
Height of the new image in the current linear units.
ALIGN
Defines the type of alignment and specifies the available sequence of the LEFT, TOP, RIGHT, BOTTOM additional parameters. It may take the following values: LeftTop, Top, RightTop, Left, Center, Right, LeftBottom, Bottom, or RightBottom. If this parameter value is Center, then the original image centerpoint is always placed to the center point of the new image and LEFT, TOP, RIGHT, BOTTOM are ignored. If one of the Top, Left, Right, Bottom values is used, the image is aligned so that the center point of the appropriate original image side is placed to the center of the new image side. In such a case only one of the additional parameters is available. For example, if Top is used, the TOP parameter is available. When you use LeftTop, RightTop, LeftBottom, or RightBottom, the two appropriate additional parameters are available. For example, the LeftTop value indicates that the TOP and LEFT parameters are available and the RIGHT and BOTTOM parameters will be ignored.
LEFT, RIGHT
Defines the offset of the left or right original image side relative to the appropriate side of the new image. You can only use one of these parameters at one time.
TOP, BOTTOM
Defines the offset of the top or bottom original image side in relation to the appropriate side of the new image. You can only use one of these parameters at one time.

Example:
/ChangeImageSize WIDTH:85.27 HEIGHT:61 ALIGN:"LeftTop" LEFT:-20.3 TOP:12.4

See also: ChangeDPI, ChangeSize, Change Size In Pixels, Resize Image, Fit To Closest Paper, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s):
Image > Brightness/Contrast

Description: Changes brightness, contrast, hue, and saturation values of the pixels in the images.

See also: Equalizer


 
 


Category: Image

WiseImage command(s): Image > Change Size

Description: Changes image size by adding or cutting specified margins.

Format:
/ChangeMargins [LEFT:<marg>] [TOP:<marg>] [RIGHT:<marg>] [BOTTOM:<marg>]

Description of Parameters:
LEFT, TOP, RIGHT, and BOTTOM
Each of these parameters defines the margin value for the appropriate image side. If the parameter value is positive, the margin will be added to the appropriate image side. If it is negative, the stripe of the defined width will be cut from the image. If some of these parameters are omitted, the appropriate margin values will be equal to 0.

Example:
/ChangeMargins LEFT:12.5 RIGHT:20 BOTTOM:12.5

See also: ChangeDPI, Change Image Size, Change Size In Pixels, Resize Image, Fit To Closest Paper, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Resample

Description: Scales the image so that its height (or width) in pixels becomes equal to the specified value.

Format:
/ChangeSizeInPixels PWIDTH:<distance in pixels> | PHEIGHT:<distance in pixels>

Example:
; Scale the image by changing its dimensions in pixels so that
; the image height will be equal 1200 pixels
/ChangeSizeInPixels PHEIGHT:1200

See also: ChangeDPI, Change Image Size, ChangeSize, Resize Image, Fit To Closest Paper, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Color Reduction

Description:Performs color reduction in the image using the current parameters or parameters defined by the specified template. If the template file is not stored in the default template directory you must define a path to it.

Format:
/ReduceColors[[ TEMPL]:"<template file>"]

Example:
;Template file is not situated in default template directory:
/ReduceColors TEMPL:"C:\MyTPLs\My_ColorReduction.tpl"

See also: Binarization, Color Separation

 

 

Category: Image

WiseImage command(s): Image > Color Separation

Description: Performs color separation of the image using the current parameters or parameters defined by the specified template. If the template file is not stored in the default template directory you must define a path to it.

Format:
/SeparateByColors[[TEMPL]:"<template name>"]

Example:
/SeparateByColors:"map.tpl"

See also: Binarization, Color Reduction

 

 

Category: Image

WiseImage command(s): Image > Convert to > Convert to Grayscale

Description: Converts images to grayscale.

Format:
/ConvertToGrayscale

See also: Binarization, Color Separation, Color Reduction

 

 

Category: Image

WiseImage command(s):
Image > Convert to > Convert To Indexed Colors

Description: Converts images to 256 colors.

Format:
/ConvertTo256Color [CBAP| ] CAC:Colors
CBAP flag specifies automatic palette calculation. CAC defines number of colors.

Example:
/ConvertTo256Color CBAP CAC:16

See also: Binarization, Color Separation, Color Reduction


 
 

Category: Image

WiseImage command(s): Image > Convert to > Convert to RGB

Description: Converts monochrome, grayscale, and 8 and 16 bit color images to RGB color images (24 bpp).

Format:
/ConvertToTrueColor

See also: Binarization, Color Separation, Color Reduction


 
 

Category: Image

WiseImage command(s): Image > 4 point correction

Description: Applies 4-point correction operation.

Format:
/FourPointCorrection [PN]:"<paper name>" [O:<orient_type>] [IF:<internal_frame_usage>]

Description of Parameters:
PN - Name of the standard paper format.
O - Orientation type (must have a numeric value):
1 - portrait orientation,
2 - landscape orientation.
IF - flag of internal frame usage (0 or 1).

Example:
/FourPointCorrection PN:"" O:1 IF:0

See also: Calibration

 

 

Category: Image

WiseImage command(s): Image > Crop > Auto

Description: Automatically detects margins for the specified raster image and removes them.

Format:
/AutoCrop [[ERN]:"<raster name>"]

Description of Parameters:
ERN - name of the raster for margins detecting. It may be omitted if the document consists of one raster image.

Example:
/AutoCrop:"map"

See also: AutoCorrection, Deskew Auto, Crop Auto By Black, Crop Auto By Frame, Equalize, Fit To ClosestPaper, Fit To Paper, Hole Remover, Rotate At 180, Rotate At 90, Rotate At 270, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Crop > Auto By Frame

Description: Reduces the image to the frame.

Format:
/AutoCropByFrame

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Fit To ClosestPaper, Fit To Paper, Hole Remover, Rotate At 180, Rotate At 90, Rotate At 270, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Deskew > Auto

Description: Automatically estimates the raster image deviations from the horizontal and vertical directions and rotates the image around its center point to align it vertically or horizontally.

Format:
/AutoDeskew[[ ERN]:"<raster name>"]

Description of Parameters:
ERN - name of the raster for automatic deskew angle estimation. It may be omitted if the document consists of one raster image.

Example:
/AutoDeskew:"vp_city"

See also: AutoCorrection, Crop Auto By Black, Crop Auto By Frame, Equalize, Fit To ClosestPaper, Fit To Paper, Hole Remover, Rotate At 180, Rotate At 90, Rotate At 270, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Equalize

Description: Automatically redistributes the brightness values of the pixels in the images.

Format:
/AutoEqualize

See also: AutoCorrection, Change Levels

 

 

Category: Image

WiseImage command(s): Image > Change Size

Description: Finds the standard paper format closest to the original image format and places the original image on a new image with the specified alignment.
The list of standard paper formats may be changed using the Papers item of the Preferences dialog box.

Format:
/FitToClosestPaper [ALIGN:"<align_type>"] [LEFT:<offset>] [TOP:<offset>] [RIGHT:<offset>] [BOTTOM:<offset>]

Description of Parameters:
ALIGN, LEFT, RIGHT, TOP, BOTTOM are described above in "ChangeImageSize" command description.

Example:
/FitToClosestPaper WIDTH:120 HEIGHT:80.5 ALIGN:"Bottom" BOTTOM:10

See also: AutoCorrection, ChangeDPI, Change Image Size, ChangeSize, Change Size In Pixels, Resize Image, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Change Size

Description: Takes the original image and places it unchanged on a new image of the specified standard size with the specified alignment.
The list of standard paper formats may be changed using the Papers item of the Preferences dialog box.

Format:
/FitToPaper [PN]:"<paper name>" [O:<orient_type>]
[ALIGN:"<align_type>"] [LEFT:<offset>] [TOP:<offset>] [RIGHT:<offset>] [BOTTOM:<offset>]


Description of Parameters:
PN - Name of the standard paper format.
O - Orientation type (must have a numeric value):
1 - portrait orientation,
2 - landscape orientation.
ALIGN, LEFT, RIGHT, TOP, BOTTOM are described above in "ChangeImageSize".

Example:
/FitToPaper PN:"ISO A2" O:2 ALIGN:"RightTop" RIGHT:20 TOP:10

See also: AutoCorrection, ChangeDPI, Change Image Size, ChangeSize, Change Size In Pixels, Resize Image, Fit To Closest Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Mirror > By X axis

Description: Flips the images about the direction of the X axis.

Format:
/MirrorX

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisY, Rotate At 180, Rotate At 90, Rotate At 270, Rotate At Custom Angle, SpeckleRemover

 

 

Category: Image

WiseImage command(s):
Image > Mirror > By Y axis

Description: Flips the images about the direction of the Y axis.

Format:
/MirrorY

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisX, Rotate At 180, Rotate At 90, Rotate At 270, Rotate At Custom Angle, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Resample

Description: Scales the image so that its height (or width) in current linear units becomes equal to the specified value. If the RESAMPLE parameter is present, the command scales the image dimensions in pixels. If it is omitted, the command scales the image by changing the new resolution value.

Format:
/Resize WIDTH:<distance>| HEIGHT:<distance> [RESAMPLE]

Description of Parameters:
WIDTH and HEIGHT
Specify the new width or height for the image.
RESAMPLE
Defines whether the image dimensions in pixels will be changed or not.

Example:
; Scale the image by changing its dimensions in /SetLinearUnits:
/Resize WIDTH:84 RESAMPLE

See also: ChangeDPI, Change Image Size, ChangeSize, Change Size In Pixels, Fit To Closest Paper, Fit To Paper, Scale Image, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Rotate > 180

Description: Rotates the images about its center point at 180 degrees.

Format:
/Rotate180

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisX, MirrorByAxisY, Rotate At 90, Rotate At 270, Rotate At Custom Angle, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Rotate > 90 cw

Description: Rotates the images about its center point at 270 degrees counterclockwise or 90 degrees clockwise.

Format:
/Rotate270_CW

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisX, MirrorByAxisY, Rotate At 180, Rotate At 90, Rotate At Custom Angle, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Rotate > 90 ccw

Description: Rotates the images about its center point at 90 degrees counterclockwise.

Format:
/Rotate90_CCW

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisX, MirrorByAxisY, Rotate At 180, Rotate At 270, Rotate At Custom Angle, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Rotate > At Custom Angle

Description: Rotates the images about its center point at the preset angle or at the user-defined angle.

Format:
/Rotate[ ANGLE]:<angle>

Example:
/Rotate:45

See also: AutoCorrection, Deskew Auto, Crop Auto ByBlack, Crop Auto By Frame, Equalize, Fit To Paper, Fit To ClosestPaper, Hole Remover, MirrorByAxisX, MirrorByAxisY, Rotate At 180, Rotate At 90, Rotate At 270, SpeckleRemover

 

 

Category: Image

WiseImage command(s): Image > Resample

Description: Scales the image. If the RESAMPLE parameter is present, the command scales the image dimensions in pixels. If it is omitted, the command scales the image by changing the resolution value.

Format:
/Scale[ SCFACT]:<scale factor> [RESAMPLE]

Description of Parameters:
SCFACT - scale factor.

Example:
; Enlarge the image twice by changing its dimensions in current
; linear units; (millimeters or inches) dimensions in pixels will not
; be changed. It means that the image
; DPI value will be decreased by half.
/Scale:2

See also: ChangeDPI, Change Image Size, ChangeSize, Change Size In Pixels, Resize Image, Fit To Closest Paper, Fit To Paper, Set DPI

 

 

Category: Image

WiseImage command(s): Image > Separation by Size

Description: Finds raster objects of the given size on the specified monochrome images and then moves the found objects onto a new layer.

Format:
/SeparateBySize RNS:"<raster_name1>"+["<raster_name2>"+...]
OLN:"<layer_name>" MIN:<dim> MAX:<dim>


Description of Parameters:
RNS - Names of monochrome raster images to find raster objects on
OLN -Name of new layer to place raster objects on
MIN, MAX - minimum and maximum sizes of objects to find.

Example:
; Moves raster objects that are more than 2 mm and less then
;3.5 mm from the "Texts" and "Symbols" images of one layer to "Small Symbols" layer.
/SeparateBySize RNS:"Texts"+"Simbols" OLN:"Small Symbols" MIN:2 MAX:3.5

See also: AutoCorrection, Contour(4-coupling), Contour(8-coupling), Gauss Blur, Hole Remover, Inversion, Medianer, Speckle Remover,Smoothing, Thickening, Thinning, UnsharpMask

 

 

Category: Image

WiseImage command(s): Image > Resample

Description: Scales the image dimensions in millimeters or inches by setting the new resolution value in dot-per-inch. The image dimensions in pixels will not be changed.

Format:
/SetDPI[ DPI]:<dpi_value>

Example:
; The current image resolution is 150 dpi and it has dimensions
; 1500X1500 pixels or 10X10 inches
/SetDPI:300
; The image resolution is 300 dpi and it dimensions in pixels don't
; scale (1500x1500 pixels)
; but its dimensions in inches are now equal to 5x5 inches

See also: ChangeDPI, Change Image Size, ChangeSize, Change Size In Pixels, Resize Image, Fit To Closest Paper, Fit To Paper, Scale Image

 

 
 

 [ welcome ]   [ hybrid graphics ]   [ quick start ]   [ tutorial ]   [ reference ]   [ about ] 


 
top