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

Initial crop position #14

Closed
o-rey opened this issue Mar 6, 2014 · 3 comments
Closed

Initial crop position #14

o-rey opened this issue Mar 6, 2014 · 3 comments

Comments

@o-rey
Copy link

o-rey commented Mar 6, 2014

Is there any way to set initial position of crop?
For example, we may want to store crop coordinates in DB and re-crop image after some time.

@acornejo
Copy link
Owner

acornejo commented Mar 6, 2014

I don't use this functionality myself, but it seems like a very
reasonable use case. I'll implement it over the weekend.

Feel free to submit a pull-request if you fix it before I do.

@asafge
Copy link

asafge commented Mar 23, 2014

Sounds very useful.

@acornejo
Copy link
Owner

Added. This new feature can be used in two ways:

By using the result option when instantiating the cropbox, or by calling the function cropArea after instantiating the cropbox.

In both cases you must supply an object that contains cropX, cropY, cropW, cropH.

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

3 participants