Image Converter Plus command line syntax :: Add operations :: Canvas
Image Converter Plus
Image Converter Plus Home FeaturesDownloadOrderSupport

Introduction of ImageConverter Plus command line
Program Overview
Program Features
Comand line syntax
Script
Makebat
Source
Convertto
BMP
JPG
GIF
PNG
TGA
TIFF
PSD
EXR
DDS
PDF
EPS
MNG
Dest
Save_opt
Template
Target_opt
Add operations (-oper)
Crop
Effect
Mirror
Resize
Rotate
Replace_color
Canvas
Color_profile
Watermark
Page_filter
Sort
How to...
Launching the program
Launch the program?
Launch the program from BATCH-file?
Launch the program from another application?
Use ImageConverter Plus command line on Web-server?
Launch the program from PERL script under Windows server?
Launch the program from Cold Fusion?
Launch the program from ASP?
Hide concole window when I launch the program from my application?
Working with files and folders
Convert files from local network?
Convert files from folder with all subfolders?
Specify name of output file?
Delete source images after conversion?
Overwrite files?
Convert CALS Raster files to TIFF?
Convert DICOM image file into TIFF?
Convert PCX file into TIFF?
Convert PDF file into TIFF in batch mode?
Convert SFF files into TIFF?
Convert TIFF file with Wang OldJPEG compression into standard TIFF?
Convert WinFax files into TIFF?
Convert WPG clipart into TIFF?
Convert color image into grayscale TIFF?
Convert Group3 and Group4 Fax files into TIFF format?
Changing image size and resolution
Stretch image proportionally?
Change image resolution?
Change image size and keep resolution?
Working with border and margins
Crop white margins from photo and fax?
Add a solid border to all images?
Working with colors and transparency
Change one color to another?
Invert colors?
Convert file with CMYK color space?
Make colors transparent?
Other questions
Save each page of multipage file separately?
Find out what version of batch converter you have?
Convert TIFF file with rotation?
Create a multipage file?
Find out numeric color code?
Additional Information
Color effects
Features in details
Supported formats
Registration and licensing
License agreement
Order ImageConverter Plus
fCoder On-line
About
Online support form
Custom development

Image Converter Plus command line syntax :: Add operations :: 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:

  • center - 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"

ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files" -oper Canvas width:100 height:200 relative:yes anchor:bottom_left color:"r:0,g:0,b:0,a:0"

tips

  1. If relative parameter is set to yes, resulting image size can be either increased or reduced (to create images of uniform size). In other case, resulting image size can only be increased (used to provide images with borders).

© 2007, fCoder Group, Inc.
Site Map | Other Projects