Merge pull request #1769 from joachimesque/thumbnail-generation-strategy

Change thumbnail generation strategy
This commit is contained in:
Mouse Reeve
2022-01-09 12:34:42 -08:00
committed by GitHub
2 changed files with 21 additions and 0 deletions

View File

@ -222,6 +222,7 @@ USER_AGENT = f"{agent} (BookWyrm/{VERSION}; +https://{DOMAIN}/)"
# Imagekit generated thumbnails
ENABLE_THUMBNAIL_GENERATION = env.bool("ENABLE_THUMBNAIL_GENERATION", False)
IMAGEKIT_CACHEFILE_DIR = "thumbnails"
IMAGEKIT_DEFAULT_CACHEFILE_STRATEGY = "bookwyrm.thumbnail_generation.Strategy"
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.2/howto/static-files/