Thanks for the clear example!
When I try it on my end, it works as expected. But looking at the header of the
example you attached:
$ oiiotool -info -v out.png
Reading out.png
out.png : 512 x 512, 3 channel, uint8 png
channel list: R, G, B
Software: "OpenImageIO 1.5.5dev : oiiotool img1.png img2.png --add -o
out.png"
You seem to be using an in-progress snapshot of master (not even a release
branch) dating from November 2014.
Whatever bug you are stumbling upon (I'm betting, improper png output, not
correctly taking into account that png is required to be "unassociated alpha"),
it's long since fixed in modern releases.
The current release (if you read this in the next day or two) is 1.8, and one
day this week it is scheduled to become obsolete as we switch to 2.0 as the
official supported release branch.
-- lg
> On Dec 4, 2018, at 9:40 AM, Sebastian Schoellhammer
> <[email protected]> wrote:
>
> Hello there,
>
> I'm pretty embarrassed but I have troubles playing with the --add command in
> oiiotool
>
> I have the following inputs:
> <img2.png>
> <img1.png>
>
> And I compose them like so:
> oiiotool img1.png img2.png --add -o out.png
> or
> oiiotool img1.png --add img2.png -o out.png
>
> I tried several different syntax but the result is always this:
>
> <out.png>
>
> Iinear/srgb came to mind and I tried things like
>
> oiiotool low_poly_bakeSet_01.png --colorconvert sRGB linear
> low_poly_bakeSet_02.png --colorconvert sRGB linear --add --colorconvert
> linear sRGB -o out.png
>
> but I couldn't manage to replicate a simple "screen" of 2 layers in Photoshop
> :/
>
> Any help is appreciated!
>
> --
> Sebastian Schoellhammer
>
> _______________________________________________
> 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