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

Fatal error: Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage #341

Open
vasekkunes opened this issue Feb 7, 2025 · 0 comments

Comments

@vasekkunes
Copy link

Hello, I got the following fatal err when converting some images with SimpleImage->bestFit().

Fatal error: Uncaught TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, null given in D:\php\hvmenu\vendor\SimpleImage\SimpleImage.php on line 659 TypeError: imagesx(): Argument #1 ($image) must be of type GdImage, null given in D:\php\hvmenu\vendor\SimpleImage\SimpleImage.php on line 659 Call Stack: 0.0002 368272 1. {main}()

... claviska\SimpleImage->bestFit($maxWidth = 1920, $maxHeight = 1080)
... claviska\SimpleImage->getWidth()
SimpleImage.php:748 imagesx($image = NULL)
SimpleImage.php:659

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