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

feat(TimberDynamicResize): delete resized images when image is deleted #546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timohubois
Copy link
Contributor

Timber Dynamic Resize in Flynt uses a custom folder “resized” using the filter timber/image/new_path dynamically within the generateImage function to store the resized images, but it does not change the path for images that are resized with the native Timber resize() function and keeps the native behaviour.

The changes are build on top on this approach so that resized images in the custom “resized“ folder are deleted after the original image was deleted.

Further resized images are not getting deleted when deleting an image if they are generated in a separate directory using the filter timber/image/new_path – created a PR to make this possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant