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

Create Management Command to clean up Renditions #113

Closed
ephes opened this issue Nov 26, 2023 · 1 comment
Closed

Create Management Command to clean up Renditions #113

ephes opened this issue Nov 26, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ephes
Copy link
Owner

ephes commented Nov 26, 2023

The would be to:

  • be able to recalculate all renditions after changing the compression quality or sizes settings for images
  • removed unused renditions
@ephes ephes added the enhancement New feature or request label Nov 26, 2023
@ephes ephes self-assigned this Nov 26, 2023
@ephes
Copy link
Owner Author

ephes commented Dec 3, 2023

Hmm, this is much harder than expected. It seems to be difficult to write tests which use Wagtails image.get_renditions-method, because it led to strange race conditions. Or maybe it's because the Wagtail code is using threads here and we are testing on sqlite which is not thread safe? I don't know, but I now put all my logic into a renditions module that will still work, even if I replace Wagtail later on...

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

No branches or pull requests

1 participant