Command line syntax
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 :: Template

-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\file.bmp" -dest "C:\Converted files" -template "my foto.jpg"

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.

ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files" -template "{title}.{type}"

ICPCL.exe -convertto bmp -source "C:\Original files" -dest "C:\Converted files" -template "number{count3}.{type}"

tips

  • If a file with the same name exists in the destination folder, it will be renamed according to the algorithm specified in -target_opt key.
  • If you want to convert several files, make sure to use macros in your template. Otherwise all files will be given the same name.

Example:

ICPCL.exe -dest "{My Documents}" -template "{Title}.{Type}" -convertto bmp -source "c:\my fotos"

  • Characters which are not allowed in file names by the system cannot be used in your templates.

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