Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geometry for composite #139

Open
romuloctba opened this issue Aug 31, 2016 · 3 comments
Open

Geometry for composite #139

romuloctba opened this issue Aug 31, 2016 · 3 comments

Comments

@romuloctba
Copy link

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
Copy link
Collaborator

rchipka commented Sep 1, 2016

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

@romuloctba
Copy link
Author

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

@romuloctba
Copy link
Author

lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants