Bytes

Function

The Bytes function pushes the input image into a different bit-depth resolution. The bit depth is counted in bytes-per-channel. To view the current bit depth of an image, you can look at the title bar of the Viewer, or look at the output of a shake -info on the command line. 10-bit Cineon files are automatically pushed to 16 bits when read by Shake.

Note: When compositing images of different bit depths, you do not need to force the images to conform; Shake automatically pushes the lower bit-depth image to the higher bit depth.

Parameters
Type
Defaults
Function
outBytes

int

(1,2, or 4)

bytes

Forces the incoming image into a new bit-depth

1 = 1 byte per channel, or 8 bits per channel
2 = 2 bytes per channel, or 16 bits per channel
4 = 4 bytes per channel, or a float 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.