Combining Images with offset

PerlMagick is an object-oriented Perl interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning PerlMagick.
Post Reply
johnfl68
Posts: 33
Joined: 2012-07-09T18:31:26-07:00
Authentication code: 13

Combining Images with offset

Post by johnfl68 »

Hello:

I am trying to add some icons to a large image that I have also done some Annotations to , and I want to place the icons at specific locations.

I have tried composite the image with compose over with geometry, with gravity and geometry, etc., and the image is never anywhere that makes sense to what I am putting in.

What is the best way to go about this?

Any suggestions?

Thanks!

John
johnfl68
Posts: 33
Joined: 2012-07-09T18:31:26-07:00
Authentication code: 13

Re: Combining Images with offset

Post by johnfl68 »

On this page, a little ways down:

http://www.imagemagick.org/Usage/annotating/

I found this example for positioning sub-images, using this:

Code: Select all

composite -geometry +31+105  hand_point.gif dragon.gif \
            dragon_claw_pointed.jpg
I'm just not exactly sure how to translate that to perl now.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Combining Images with offset

Post by anthony »

The Composite function will take the X,Y offset directly.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply