DOKK / manpages / debian 10 / openimageio-tools / maketx.1.en
MAKETX(1) General Commands Manual MAKETX(1)

maketx - convert images to tiled, MIP-mapped textures

maketx [options] files...

The maketx program will read an image (from any file format for which an ImageInput plugin can be found) and then write it in a form in which it will have high performance when used by TextureSystem. This involves converting it to tiled (versus scanline) orientation, writing multiple subimages at different resolutions (MIP-map), and setting a variety of header or metadata fields appropriately for texture maps.

The maketx utility is invoked as follows:

maketx [options] input... -o output

Where input and output name the input image and desired output filename. The input files may be of any image format recognized by OpenImageIO (i.e., for which ImageInput plugins are available). The file format of the output image will be inferred from the file extension of the output filename (e.g., "foo.tif" will write a TIFF file).

For a complete description, see /usr/share/doc/openimageio-doc/openimageio.pdf.gz.

Print help message
Verbose status messages
Output filename
Old mode
Number of threads (default: #cores)
Update mode
Specify output file format (default: guess from extension)
Specify the number of output image channels.
Rename channels (comma-separated)
Set the output data format to one of:
uint8, sint8, uint16, sint16, half, float
Specify tile size
Use planarconfig separate (default: contiguous)
Set the compression method (default = zip, if possible)
Override the frame aspect ratio. Default is width/height.
Specify wrap mode (black, clamp, periodic, mirror)
Specific s wrap mode separately
Specific t wrap mode separately
Resize textures to power of 2 (default: no)
Do not resize textures to power of 2 (deprecated)
Select filter for resizing
(choices: box triangle gaussian sharp-gaussian catrom blackman-harris sinc lanczos3 radial-lanczos3 mitchell bspline disk, default=box)
Compress HDR range before resize, expand after.
Do not make multiple MIP-map levels
Check for NaN/Inf values (abort if found)
Attempt to fix NaN/Inf values in the image (options: none, black, box3)
Set the 'full' image range to be the pixel data window
Set the camera matrix
Set the screen matrix
--prman-metadata
Add prman specific metadata
Create 1-tile textures from constant color inputs
Create 1-channel textures from monochrome inputs
Drop alpha channel that is always 1.0
Ignore unassociated alpha tags in input (don't autoconvert)
Print runtime statistics
Specify an individual MIP level

Create shadow map
Create lat/long environment map
Create lat/long environment map from a light probe

Apply a color space conversion to the image. If the output color space is not the same bit depth as input color space, it is your responsibility to set the data format to the proper bit depth using the -d option.
(choices: linear, sRGB, Rec709)
Unpremultiply before color conversion, then premultiply after the color conversion. You'll probably want to use this flag if your image contains an alpha channel.

Use PRMan-safe settings for tile size, planarconfig, and metadata.
Use OIIO-optimized settings for tile size, planarconfig, metadata, and constant-color optimizations.

iconvert(1), idiff(1), igrep(1), iinfo(1), iv(1), oiiotool(1).

OpenImageIO was written by Larry Gritz and the other authors and contributors.

This manual page was written by IRIE Shinsuke <irieshinsuke@yahoo.co.jp>, for the Debian project (and may be used by others).

August 10, 2013