Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Resized Webp images generated by Timber/ImageHelper::towebp and Timber/ImageHelper::resize filter are not deleted along original image #2882

Open
montagmorgens opened this issue Jan 14, 2024 · 1 comment
Labels
Image(Helper) Issues related to the Image and ImageHelper classes

Comments

@montagmorgens
Copy link

Expected Behavior

When I delete an image from the WP media library, I expect that all derivative image files that were created by Timber image filters are deleted as well.

Actual behavior

Images that were created by a combination of resize and towebp filters are not deleted from the file system.

Steps to reproduce behavior

  1. Create image in Twig: image.src|towebp|resize(100,100)
  2. Delete the image from the WP media library

Notes

No response

What version of Timber are you using?

Timber 2.0

What version of WordPress are you using?

WordPress 6.4.2

What version of PHP are you using?

PHP 8.1

How did you install Timber?

Installed or updated Timber through Composer

@bitfactory-robin-martijn
Copy link
Contributor

This shouldn't be implemented before this is implemented, or the wrong images might be deleted: #2850

@Levdbas Levdbas added the Image(Helper) Issues related to the Image and ImageHelper classes label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Image(Helper) Issues related to the Image and ImageHelper classes
Projects
None yet
Development

No branches or pull requests

3 participants