Skip to content

PHP E_WARNING when imagecreatefromstring() is used #338

@dhm80

Description

@dhm80

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!

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