Centering during composition?

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
pwnedd
Posts: 35
Joined: 2008-09-03T13:03:57-07:00

Centering during composition?

Post by pwnedd »

Anyone know if there is a way to center and composite one image on top of another without having to pass in the offset?
On the command line you can specify a "gravity" when using composite, but that isn't an option for Imagick's compositeImage
method.

Any ideas?
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Centering during composition?

Post by mkoppanen »

Hi,

I guess you have to calculate the center point manually.
Mikko Koppanen
My blog: http://valokuva.org
Post Reply