Re: [Oiio-dev] How to properly composite two images?

2018-02-09 Thread Daniel Flehner Heen
Hi again!

Got it working. Must have messed up something in my earlier attempts.
Had to paste logo in the correct position in an empty buffer the size of my
background  first and then over that buffer over the background.

Have a nice weekend!

On Fri, Feb 9, 2018 at 10:47 AM, Daniel Flehner Heen <
flehnerhee...@gmail.com> wrote:

> Oh, and it's python and OIIO version 1.8.5
>
> Thanks
>
> On Fri, Feb 9, 2018 at 10:16 AM, Daniel Flehner Heen <
> flehnerhee...@gmail.com> wrote:
>
>> Hi!
>>
>> I'm attempting to composite two images, but having a hard time getting
>> the result I'm after.
>> It's a simple logo with alpha over a background situation.
>>
>> I've tried both ImageBufAlgo.paste() and ImageBufAlgo.over() with varying
>> results. None of them yields the result I expected. The logo either gets a
>> black background around it with ImageBufAlgo.paste() or applies
>> transparency all the way through the background with ImageBufAlgo.over()
>>
>> I've also played around with ROI and channel range with no luck.
>>
>> Does anyone have any experience with this or have any pointers in any
>> direction I can check out?
>>
>> Thanks!
>> --
>> -Daniel
>>
>
>
>
> --
> -Daniel
>



-- 
-Daniel
___
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org


Re: [Oiio-dev] How to properly composite two images?

2018-02-09 Thread Daniel Flehner Heen
Oh, and it's python and OIIO version 1.8.5

Thanks

On Fri, Feb 9, 2018 at 10:16 AM, Daniel Flehner Heen <
flehnerhee...@gmail.com> wrote:

> Hi!
>
> I'm attempting to composite two images, but having a hard time getting the
> result I'm after.
> It's a simple logo with alpha over a background situation.
>
> I've tried both ImageBufAlgo.paste() and ImageBufAlgo.over() with varying
> results. None of them yields the result I expected. The logo either gets a
> black background around it with ImageBufAlgo.paste() or applies
> transparency all the way through the background with ImageBufAlgo.over()
>
> I've also played around with ROI and channel range with no luck.
>
> Does anyone have any experience with this or have any pointers in any
> direction I can check out?
>
> Thanks!
> --
> -Daniel
>



-- 
-Daniel
___
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org


[Oiio-dev] How to properly composite two images?

2018-02-09 Thread Daniel Flehner Heen
Hi!

I'm attempting to composite two images, but having a hard time getting the
result I'm after.
It's a simple logo with alpha over a background situation.

I've tried both ImageBufAlgo.paste() and ImageBufAlgo.over() with varying
results. None of them yields the result I expected. The logo either gets a
black background around it with ImageBufAlgo.paste() or applies
transparency all the way through the background with ImageBufAlgo.over()

I've also played around with ROI and channel range with no luck.

Does anyone have any experience with this or have any pointers in any
direction I can check out?

Thanks!
-- 
-Daniel
___
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org