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

Division by Zero when "Crop And Save" button is pressed #81

Closed
juanwilde opened this issue Aug 30, 2016 · 4 comments
Closed

Division by Zero when "Crop And Save" button is pressed #81

juanwilde opened this issue Aug 30, 2016 · 4 comments

Comments

@juanwilde
Copy link

juanwilde commented Aug 30, 2016

I'm using this awesome bundle and apparently all is fine. But when I press the Save button I get this error
image

The same in line 343
image

Any idea?

@comur
Copy link
Owner

comur commented Aug 31, 2016

Apparently there is a problem with your image or you selection but anyway we should put a check on srcH and destH to be sure that it's > 0
Can you check these values by adding a var_dump or something ?

@juanwilde
Copy link
Author

Yes. What I did is to check if those values were > 0 and it worked for me.
I'm checking some issues like this and hope to have time to do a fork an PR

@comur
Copy link
Owner

comur commented Sep 1, 2016

Cool, thanks for your help !

@comur
Copy link
Owner

comur commented May 30, 2019

Too old. I close. Feel free to open new issue if you have any problem

@comur comur closed this as completed May 30, 2019
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