Need a Composite help

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
wasiliy

Need a Composite help

Post 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!

el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: Need a Composite help

Post 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
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.

wasiliy

Re: Need a Composite help

Post 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)

wasiliy

Re: Need a Composite help

Post by wasiliy »

No more suggestions?

Post Reply