Skip to content

Unable to insert/select uploaded animated webp image #454

@vstruhar

Description

@vstruhar

Filament Version

v3.2.35

Plugin Version

v3.5.0

PHP Version

PHP 8.3.3

Problem description

Unable to insert/select image after uploading animated webp images, because the Intervention Image package does not support it and throws an exception on src/Components/Forms/Uploader.php:109.

Intervention does support webp images, but it doesn't support animated webp images.
Both have the same extension, that's why it is used by mistake with Intervention, by passing is_media_resizable check.

Is it possible to upload file and not use Intervention to get dimensions and exif?

Expected behavior

User should be able to insert/select animated webp images.

Steps to reproduce

  1. Select animated webp image
  2. After uploading click Insert button
  3. Exception is thrown

Reproduction repository

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions