Open romuloctba opened 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?
.composite
geometry
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?
Sure, if I'm able to make it work, I'll gladly PR here
lol
Hi guys
I would like to know if you can give me an Idea in how can I make the
.composite
method acceptgeometry
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?