You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gchtr: thanks for filing this detailed issue (and using the issue template, it really helps us zero-in on the problem quickly and provide a patch). @connorjburton made changes to the code and submitted a PR in #897 that resolves the issue. Thanks to you both for making the fix happen!
Expected behavior
TimberImageHelper::delete_generated_files()
should automatically delete all generated image sizes when an attachment is deleted.Actual behavior
Some JPG files are not deleted, when they were generated through
tojpg
Twig filter that was used on a PNG file.Steps to reproduce behavior
<img src="{{post.thumbnail.src|tojpg|resize(200, 200)}}">
wp-content/uploads
folder.wp-content/uploads
folder.What version of WordPress, PHP and Timber are you using?
WordPress 4.4.2, PHP 5.6.10, Timber 0.22.5
How did you install Timber?
Upgraded to newest version via plugin updater in WordPress.
The text was updated successfully, but these errors were encountered: