The following formats are supported by imcopy.
Image Format | Default Extension |
---|---|
Alias | als |
Cineon | (none) |
DPX | (none) |
Pixar | picio |
Pict | pict |
JPEG | jpeg |
SGI | sgi |
Softimage | pic |
Targa | tga |
TdiMaya | iff |
Tiff | tif |
Wavefront | rla |
To convert an image from one format to another using imcopy, you must specify which file to convert, where the file is located, the format it should be converted to, and where to store the file on output.
<output format> <in file name and path> <out file name and path> <start index> <stop index>
Where: | Is: |
---|---|
<output format> | The file type of the output file. |
<in file name and path> | The name of the file that you are inputting. |
<out file name and path> | The name of the file that you are outputting. |
<start index> | The start frame of the file. |
<stop index> | The end frame of the file. |
This operation converts the SGI images into TIFF images.
Input | Output |
---|---|
/usr/tmp/SGI/source0001.sgi | /usr/tmp/TIFF/source/dest0001.tif |
/usr/tmp/SGI/source0002.sgi | /usr/tmp/TIFF/source/dest0002.tif |
/usr/tmp/SGI/source0100.sgi | /usr/tmp/TIFF/source/dest0100.tif |
Extracting an Alpha Channel from an RGBA Image
-x option to extract the alpha channel from your RGBA image. The RGBA infile will be split into two RGB outfiles; the destination_alpha_filename file will contain only the alpha channel of the inRGBA_file, and the outRGB_file will contain only the RGB components of the inRGBA_file.
You can use thenoinvert <in RGBA file> <destination for RGB and alpha files> <start index> <stop index>
Where: | Is: |
---|---|
<in RGBA file> | The name of the file that you are inputting. |
<destination for RGB and alpha files> | The name of the file that you are outputting. |
<start index> | The start frame of the file. |
<stop index> | The end frame of the file. |
This example takes the SGI RGBA images in the sequence and creates two clips in the MyLib library on the NTSC project of the framestore stonefs.
Input | Output |
---|---|
RGB in frame 1 of myclip, Alpha in frame 1 of myclip_alpha | |
RGB in frame 2 of myclip, Alpha in frame 2 of myclip_alpha | |
RGB in frame 100 of myclip, Alpha in frame 100 of myclip_alpha |
On output, the clip myclip contains the RGB image, and the clip myclip_alpha contains the alpha channel of the original image.
Integrating an Alpha Channel into an RGB Image
-a option to combine an alpha (matte) infile and an RGB infile to produce an RGBA outfile.
You can use the<in matte file> <in RGB file> <out RGBA file>
Where: | Is: |
---|---|
<in matte file> | The name and path of the source matte file. |
<in RGB file> | The name and path of the source RGB file. |
<out RGBA file> | The name of the result RGBA file. |
This example takes the RGB data from myclip in the MyLib clip library in project NTSC on framestore stonefs, combines it with the matte clip myclip_alpha, and generates an SGI RGBA for the first 100 frames.
Input | Output |
---|---|
RGB from frame 1 of myclip and Alpha from frame 1 of myclip_alpha | /usr/tmp/SGI/dest0001.sgi |
RGB from frame 2 of myclip and Alpha from frame 2 of myclip_alpha | /usr/tmp/SGI/dest0002.sgi |
RGB from frame 100 of myclip and Alpha from frame 100 of myclip_alpha | /usr/tmp/SGI/dest0100.sgi |
-o (x position, y position) option. You can specify the size of this section with the -s (width, height) option.
If you want to import a section of your source image only, you can specify the origin of this section with the-d (width, height) option. By default, the size of the internal buffer is the same as the width and height of the source image. If the buffer size differs from the source image, resize the selected rectangle from the source image into the internal buffer size using the -k (cropping type) option.
The size of the internal buffer is specified with the-q option can be used to specify the quality of resizing: coarse, medium, quality or bicubic.
The-k option. The available options are as follows.
You can crop the source frames using theOption | Function |
---|---|
-k crop | Centres and crops the image. -b r, g, b, or a can be used to specify the colour for the cropped part of the image (default is black). |
-k fit | Scales the longest edge to fit the frame size. Unused parts of the frame are filled with black. |
-k fitall | Scales the shortest edge to fit the frame size and crops the longest edge. The frame will be filled and part of the original image will be missing. |
-k fitboth | Stretches or squeezes the image to fill the new resolution. This option scales the X and Y dimensions of the image non-proportionately to make it fit in the current frame. This changes the aspect ratio, which results in a distorted image. |
By default, the internal buffer has a depth of 8 bits. If your source image has a depth greater than 8 bits, you should specify an internal buffer depth of 12 bits using the -i 12 option to avoid truncating data to 8 bits per component. This changes the buffer depth from 8 bits to 12 bits.
-f (image format) option to specify a different image format. By default, imcopy outputs images with 8-bit depth. Use the -e (bit depth) option to override the default setting.
Once the desired area of the source image has been cropped and resized and the bit depth has been converted into the internal buffer, the image is written to the destination. If the destination is an image file, the image file format will be the same as the input format. You can use theSource Image Bit Depth | Option Parameter |
---|---|
16-bit (TIFF, SGI, Wavefront, Tdi/Maya) | -e 16 |
10-bit (Cineon, DPX) | -e 10 |