Page 1 of 1

Need a Composite help

Posted: 2010-01-26T08:24:02-07:00
by wasiliy
Trying to composite two images:
$res->Composite(
image=>$img,
x=>$x
y=>$y
);

All works ok, but images has different brightness/contrast or color levels are different, so picture looks not very good.

How can I get levels/color/etc of both images and set them the same so pictures will be like "one"?

Sorry for my bad Egnlish.

Thanks for help!

Re: Need a Composite help

Posted: 2010-01-26T09:00:31-07:00
by el_supremo
Which compose setting are you using? If it's multiply, or something similar, it will change the brightness/contrast/colours quite a bit.

Pete

Re: Need a Composite help

Posted: 2010-01-26T10:00:15-07:00
by wasiliy
Exact code I'm using is:
$res->Composite(
image=>$img,
x=>$x
y=>$y
);

The problem is multiply and so on will change the source image in places where it is concatenate with destination.
Images I have is like background + transparent hole, and another one is placed under that transaprent hole so it looks like the one image at all. but the problem is that image in that hole has different looking (colors or contrast)

Re: Need a Composite help

Posted: 2010-01-29T11:25:11-07:00
by wasiliy
No more suggestions?