composing while distorting multiple images
Posted: 2011-06-18T23:09:46-07:00
quick question if possible,
im doing succesfully a distortion of an image combined with many others, like this
$command= 'convert '.$base.' ( '.$source1.' -matte -virtual-pixel transparent +distort Perspective "'.$points.'" ) ( '.$source2.' -matte -virtual-pixel transparent ) ( '.$source3.' -matte -virtual-pixel transparent ) -compose over -layers merge '.$target;
the question is, some of those images i need to compose them using screen or multiply blending modes for example, i know how to use the modes using the operator
composite -compose Screen
but i cannot manage to mix that with the previous command, how can i for example apply the (composite -compose Screen) to the $source1 part of the command ( '.$source1.' -matte -virtual-pixel transparent +distort Perspective "'.$points.'" )
and not to the rest,
cause i know i can add it at the very end to apply it to all of it, but i want to apply for example a screen or multiply just to one of them, how can i do that?
thanks very much
jav
im doing succesfully a distortion of an image combined with many others, like this
$command= 'convert '.$base.' ( '.$source1.' -matte -virtual-pixel transparent +distort Perspective "'.$points.'" ) ( '.$source2.' -matte -virtual-pixel transparent ) ( '.$source3.' -matte -virtual-pixel transparent ) -compose over -layers merge '.$target;
the question is, some of those images i need to compose them using screen or multiply blending modes for example, i know how to use the modes using the operator
composite -compose Screen
but i cannot manage to mix that with the previous command, how can i for example apply the (composite -compose Screen) to the $source1 part of the command ( '.$source1.' -matte -virtual-pixel transparent +distort Perspective "'.$points.'" )
and not to the rest,
cause i know i can add it at the very end to apply it to all of it, but i want to apply for example a screen or multiply just to one of them, how can i do that?
thanks very much
jav