Oh that's right. Not R... A. And the reason we changed the logic was that 'A' 
means something special -- alpha -- and that was causing problems in certain 
contexts where the alpha channel was by design treated differently than color 
channels.

Just as a bonus, here's a command line that would work no matter what the 
channel names were (by renaming first):

    oiiotool greyscale.tif --chnames foo --ch R=foo,G=foo,B=foo -o out.exr



> On Dec 7, 2016, at 6:00 PM, Steven Caron <[email protected]> wrote:
> 
> Ah, I see... So I am on 1.6.16 and a verbose info gives me...
> 
> channel list: A
> 
> so now...
> 
> >oiiotool greyscale.tif -ch "R=A,G=A,B=A" -o rgb.exr
> 
> Thanks!
> 
> On Wed, Dec 7, 2016 at 5:54 PM, Larry Gritz <[email protected] 
> <mailto:[email protected]>> wrote:
> Depends on exactly which OIIO version you are using. At some point we changed 
> the implied channel name (for formats like TIFF that don't actually save the 
> names) of single channel images from R to Y, I think.
> 
> Try:
> 
>     oiiotool --info -v greyscale.tif
> 
> and somewhere in there you'll see the full channel list.  "Y", right?
> 
> So I think you will want
> 
>     oiiotool greyscale.tif --ch "R=Y,G=Y,B=Y" -o rgb.exr
> 
> Does that do the trick?
> 
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to