Hi,

I'm trying to convert grayscale (half) float linear .exr images into 8-bit
sRGB render-ready .tx files, while using dithering in the process with
--dither.

When the input image is 3-channel color data the conversion works fine.
However when the image is single channel, --dither seems to choke up a
garbled image. Converting the image from 3-channel down to single channel
at the same time as using --dither won't work either.

For example either of these two commands below will produce garbled images
using RGBA inputs:

oiiotool input.exr --ch "R" --dither --colorconvert linear sRGB -d uint8 -o
output.tif

maketx input.exr --nchannels 1 --dither --colorconvert linear sRGB -d uint8
--oiio --compression zip -o output.tx

I'm trying to get this all done in one maketx pass, but so far the only way
I got this to work is doing this:

oiiotool input.exr --dither --colorconvert linear sRGB -d uint8 -o tmp.tif
maketx tmp.tif --nchannels 1 --oiio --compression zip -o output.tx

This doesn't work though if the input image is already single-channel.
Anyone else can reproduce this ? Could this be a --dither bug when
dithering single channel images?

Thanks!
Eric

-- 
---------------------------------------------------------------
Eric Tabellion           [email protected]
R&D Staff                (650)-562-9146
PDI/Dreamworks
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to