![]()
imgcvt
The
imgcvtutility converts images or sequences of images from one image format to another.In a shell window, enter
imgcvtfollowed by the name of the image you want to convert. The input and output image formats are usually determined by the filename extension or image content. However, when the input or output image has no extension, or cannot be identified, the-fand-toptions can be used to indicate the desired formats. You can use the following options:Example 1
This command converts the image named
input_imagethat is in the Silicon Graphics format to the TIFF format and saves the image out to a different name,output_image.Example 2
This command converts an tiff image to the IFF file format.
Options
Command line options Description
-f input_image_extensionIdentifies the specific image format that you are converting from. For example:
-f sgiThis indicates that only files matching the Silicon Graphics image format are accepted as input.
-t output_image_extensionIdentifies the specific image format that you are converting to. For example:
-t tiffThis indicates that files will be converted to the TIFF image format only. For the list of possible extensions, see Image extensions.
-n start end stepIs the start, end and step of an input image sequence (only whole numbers are accepted).
-N start end stepIs the start, end and step of an output image sequence (only whole numbers are accepted).
-r rangeIn an input image sequence, selects the range of images to be converted from. For example:
imgcvt -r 1-5 ...
imgcvt -r 1-5x2 ...
imgcvt -r 1-5,10-20x2,50 ...A sequence specifier is a list of single frames or ranges separated by a comma or a slash. For each range, an optional step can be specified after a x.
Sequences can be reversed and offsets can be added to the input or output frame number:
imgcvt -r 100-1 -R 1-100 in.#.rgb out.#.rla
imgcvt -r 1-100 in.#.rgb out.#+100.rlaThese are individual sequentially numbered image files.
-R rangeIn an output image sequence, selects the range of images to be converted to.
-hProvides a brief description of each option.
-sSilent mode.
-vVerbose mode.
-V pal/ntscVideo mode for yuv files.
-C compressTIFF compression types:
LZW(this is the default) orNONE.
-q NJPEG quality (0..100; 75 default).
-mExplore map format.
When you are working on a sequence of images, the # and @ symbols are used to reference the current frame number. The hash (#) indicates a four-digit padded number, whereas @ symbol indicates a non-padded number. The following converts a sequence of 100 frames:
For more precise control of the frame number format, use either multiple @ symbols to set a specific padding or use the standard printf(3S) notation:
imgcvt -n 1 100 1 image_in.@@@.rgb image_out.#.rla imgcvt -n 1 100 1 image_in.%03d.rgb image_out.#.rla imgcvt -n 1 100 1 image_in.%.2f.rgb image_out.#.rlaImage extensions
Use the following extensions to convert images from one image format to another. In the
-foption, you specify the extension of the image format you are converting from. In the-toption, you specify the extension of the image format you are converting to.