On this page |
Overview ¶
iconvert [options] infile outfile [tag tagvalue] ...
Options ¶
-d ‹depth›
The bit-depth of the output file.
Use one of the following depth values:
Value |
Result |
---|---|
|
8 bit unsigned int |
|
16 bit unsigned int |
|
16 bit floating point |
|
32 bit floating point |
For example, use -d half
to convert to 16-bit floating point pixels.
-n ‹informat›
Normally, the program decides the input format based on the input file extension. You can force the input format using this option.
-t ‹outformat›
Normally, the program decides the output format based on the output file extension. You can force the output format using this option.
-g off|auto
By default, the program converts color gamma between formats.
For example, .exr
files are typically in linear format while .jpg
files have gamma applied.
If you specify -g auto
, the program converts gamma (the default).
If you specify -g off
, the program does not convert gamma.
You can set a default value for this option in the HOUDINI_AUTOCONVERT_IMAGE_FILES
environment variable.
-m ‹miplevel›
When converting a mipmapped texture, use this map level as the input image.
-L ‹input_lut›
The path to a Cineon LUT file to use on the input image.
-O ‹output_lut›
The path to a Cineon LUT file to use on the output image.
--ocio
Use OCIO to detect the color space of the input and output images. This uses the OCIO file parsing rules.
--iscolorspace ‹ispace›
Explicitly specify the input OCIO color space.
--tocolorspace ‹ospace›
Explicitly specify the output OCIO color space.
--colorconvert ‹ispace› ‹ospace›
Explicitly specify both the input and output OCIO color spaces.
--ociolook ‹look_name›
An OCIO look to apply when transforming colors.
--ociodisplay ‹display› ‹view›
Apply a preset OCIO transformation using a display and view to look up the destination color space, transform, and tone mapping operation.
You can reverse this transformation and transform from the display/view with the --ocioreverse
flag.
--ocioreverse
Apply the inverse of the transformation specified by the --ociodisplay
option,
transforming from the display/view.
Note
When reversing the transform, use the output color space as the “source” color space.
Examples ¶
Transform color spaces using OpenColorIO file rules
iconvert --ocio source.jpg output.exr
Transform color spaces using explicit OpenColorIO color spaces
iconvert --colorconvert srgb_tx lin_rec709 source.jpg output.exr iconvert --colorconvert "sRGB Texture" "ACEScg" source.jpg output.exr iconvert --colorconvert "sRGB Texture" "scene_linear" source.jpg output.exr
Transform color spaces using OpenColorIO display/view
# Use the default view for "sRGB - Display" iconvert --ocio --ociodisplay "sRGB - Display" "" source.exr output.jpg # Explicitly choose a view iconvert --ocio --ociodisplay "sRGB - Display" "ACES 1.0 - SDR Video" source.exr output.jpg iconvert --ocio --ociodisplay "sRGB - Display" "Un-tone-mapped" source.exr output.jpg # Reverse the display transform iconvert --iscolorspace ACEScg --ocioreverse --ociodisplay "sRGB - Display" "" source.exr output.jpg
Notes ¶
-
iconvert
applies gamma correction to color planes when converting between formats of different types, if those formats have different colorspaces. Use-g off
to disable gamma correction. -
Houdini’s list of known file extensions is in
$HFS/houdini/dso_fb/index
. -
Tags are usually passed to the output image processor. You can prefix tags with
in:
orout:
to specify which image the tag is for.