elad / node-imagemagick-native

ImageMagick's Magick++ bindings for NodeJS
629 stars 132 forks source link

Geometry for composite #139

Open romuloctba opened 8 years ago

romuloctba commented 8 years ago

Hi guys

I would like to know if you can give me an Idea in how can I make the .composite method accept geometry attribute?

Because I can do, via command line, this:

convert dog-face.jpg -alpha set -gravity center -extent 1000x1000 image_mask.png -geometry 100x-200 -compose DstIn -compose Over -composite -sampling-factor 2x1 result-dog-face.jpg

This would position my mask 100px+y and -200px-x from the gravity (center in this case)

But geometry is not a valid argument for node-imagemagick-native's .composite method.

Is there a way for me to patch it and add the geometry option?

rchipka commented 8 years ago

@romuloctba Would you be willing to create a pull request for this?

romuloctba commented 8 years ago

Sure, if I'm able to make it work, I'll gladly PR here

romuloctba commented 8 years ago

lol