elad / node-imagemagick-native

ImageMagick's Magick++ bindings for NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Geometry for composite

romuloctba opened this issue · comments

commented

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?

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

commented

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

commented

lol