Bytes
Function
This function pushes the input image into a different bit-depth resolution. The bit-depth is counted in bytes-per-channel. You can view an image's current bit-depth either by looking at the title bar of a Viewer, or by looking at the output of a shake -info on the command line. 10-bit Cineon files are automatically pushed to 16-bit when being read by Shake. Note that you never have to force images of two different bit-depths to conform when you composite them together; Shake automatically pushes the lower bit-depth image up to the higher bit-depth.
Parameters
|
Type
|
Defaults
|
Function
|
outBytes |
int (1,2, or 4) |
bytes
|
This will force the incoming image into a new bit-depth 1 = 1 byte per channel, or 8 bits per channel |
Synopsis
image Bytes( image, int outBytes );
Script
image = Bytes( image, outBytes );
Command Line
shake -bytes outBytes
Examples
shake lisa.iff -bytes 1
shake lisa.iff -bytes 2
shake lisa.iff -bytes 4
These commands convert the image to 8, 16, and 32 (float) bits, respectively.