ic ic
Image Conversion utility.
ic
is a command-line tool that converts image files to the optimized Pyramid TIFF format (PTIFF). While Image Serving can process images without conversion, we recommend that you convert all images larger than 512x512 pixels to PTIFF. This conversion ensures optimal server performance and resource usage and minimizes response times.
It is recommended that PTIFF files that contain photographic content be JPEG-encoded (specify -jpegcompress
). Computer-generated contents can benefit from lossless compression (either -deflatecompress
or -lzwcompress
). Unless a color conversion or pixel type conversion is required, JPEG source image data is transferred to the PTIFF without decoding, to avoid quality degradation. In this case, the specified compression options apply only to the lower resolution pyramid levels.
If you are not converting large images you do not have to set the parameters that control how much memory to use. However, if you are, give ic
more memory by using the -maxmem
setting described below. A good rule of thumb for computing the amount of memory required is to multiply the width of the image times the height of the image times the number of channels. For example, four for an RGB image with alpha times three. In addition, if the channels are 16-bits per component instead of 8 double the final result.
Usage section-fb5293fa79894442aba831c1e14c5cc9
ic -convert
[
options
]
sourceFiledestFile
ic -convert
[
options
]
sourceFolderdestFolder
-c -convert
[
options
]
sourceFiledestFolder
Returns section-36a2dcfa39824d29b69547c432366219
0 if successful. If an error occurs, a nonzero value is returned and error details are sent to stderr
.
Options section-df311ace43f947b3817b60b667ae04ca
Supported Input Image Formats section-ab13d941d6724e65b9f84b62d949d31c
The following table lists the image file formats and format options which are supported by IC.
BMP
(Windows Bitmap)
EPS
(Encapsulated Postscript)
CompuServe
GIF
JPG
(JFIF/JPEG)
Photoshop
PSD
Macintosh
PICT
Embedded ICC profiles are recognized in EPS, JPG, PSD, PNG, and TIFF files.
Embedded paths and XMP metadata are recognized in EPS, JPG, PSD, and TIFF files.
Examples section-3c1986b30315431989bd76b1ee5bef6d
Convert a single image at best quality and keep it in the same folder:
ic -convert src/myFile.png src/myFile.tif
Convert all images in srcFolder
to JPEG-encoded pyramid TIFFs and place in destFolder
:
ic -convert -jpegcompress -jpegquality 90 -overwrite -continueOnError srcFolder destFolder
Convert all images in srcFolder
. The encoded image data of JPG files is used for the full-resolution level, loss-less LZW compression for the remainder of the image pyramid of these images as well as for the entire output image of all non-JPG input files. The pixel types, embedded color profiles, XMP metadata, and so on. are maintained.
ic -convert -lzwcompress -embedXmpData -embedColorProfile -maintainpixeltype -overwrite -continueOnError srcFolder destFolder