Skip to content

Original AVIF files don't get deleted #2358

@joshfester

Description

@joshfester

Bug Description

When using Modern Image Formats set to AVIF mode, deleting an image from the media library will delete the original jpg/png files and all the resized AVIF files (thumbnail, medium, large), but not the full/original AVIF file.

Steps to reproduce

  1. Enable Modern Image Formats
  2. Set the format to AVIF
  3. Upload a png/jpg image to the media library
  4. Delete that media item from the library

Additional Context

  • PHP Version: 8.3.27
  • OS: Ubuntu 24.04
  • Browser: chrome/firefox/safari
  • Plugin Version: 4.0.1
  • Modern Image Formats version: 2.6.1
  • Device: any

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] BugAn existing feature is broken

    Type

    No type

    Projects

    Status

    Not Started/Backlog 📆

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions