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

ux-cropperjs: throws exception when the image gets resized really small #294

Open
floriankittelmann opened this issue Mar 14, 2022 · 3 comments
Labels

Comments

@floriankittelmann
Copy link

When I resize the image in the cropper of the ux-cropperjs-package to a really small image and I hit the submit button, I get the following error msg:

imagealphablending(): Argument #1 ($image) must be of type GdImage, bool given" at 
[app-path]/vendor/intervention/image/src/Intervention/Image/Gd/Commands/ResizeCommand.php line 61

I guess this happens because the output of the imagecreatetruecolor function can also be false, which doesnt get checked before using the imagealphablending function. Could you please have a look to that?

Is it possible to somehow set a minimum size for the picture in the symfony form as cropper_options?

@carsonbot
Copy link

Thank you for this issue.
There has not been a lot of activity here for a while. Has this been resolved?

@carsonbot
Copy link

Could I get a reply or should I close this?

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

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

No branches or pull requests

2 participants