Skip to content

Uploading a GIF results in ArgumentCountError #67

@nu111

Description

@nu111

https://github.com/psolom/RichFilemanager-PHP/blob/master/src/Repository/BaseUploadHandler.php#L791

when uploading a GIF, this error is thrown

ArgumentCountError: imagegif() expects at most 2 arguments, 3 given

I think that this behaviour is related to changes since php 7.1.

Maybe the clearest fix would be to break the

return $write_func($src_img, $new_file_path, $image_quality);

into a switch.

This is a remainder, I will try to fix it later on.

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