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

How to crop image? #241

Open
maxsnz opened this issue Dec 19, 2021 · 1 comment
Open

How to crop image? #241

maxsnz opened this issue Dec 19, 2021 · 1 comment

Comments

@maxsnz
Copy link

maxsnz commented Dec 19, 2021

Hello and thanks for your job.

It seems, there is no "crop" feature.
I've also tried to create transparent image and draw target picture with negative "x" or "y" position, but no effect:

images(1200, 630)
  .draw(images("input.jpg"), -100, 0)
  .save("output.jpg")

There is no target picture in the output, just plain black

@rafinskipg
Copy link

i think is because negative coordinates do not work

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