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

PHP E_WARNING when imagecreatefromstring() is used #338

Open
dhm80 opened this issue Mar 11, 2024 · 0 comments
Open

PHP E_WARNING when imagecreatefromstring() is used #338

dhm80 opened this issue Mar 11, 2024 · 0 comments

Comments

@dhm80
Copy link

dhm80 commented Mar 11, 2024

In class SimpleImage the php internal function imagecreatefromstring() raises php warnings if the data is invalid:

E_WARNING: imagecreatefromstring(): Data is not in a recognized format

The function is used in two methods: fromDataUri() and fromFile()

Please change to @imagecreatefromstring() and throw an exception if result is false (see https://www.php.net/manual/en/function.imagecreatefromstring.php)

Thanks!

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

1 participant