Skip to content

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

@vasekkunes

Description

@vasekkunes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions