feat: avoid image upscaling during image processing

There's now a threshold for each scenario. Images less than x width will not be processed.
This commit is contained in:
Jimmy Cai
2023-10-21 18:24:52 +02:00
parent b9fb60f2ba
commit 47a57a2ad2
3 changed files with 37 additions and 14 deletions
+12
View File
@@ -157,5 +157,17 @@ imageProcessing:
- webp
cover:
enabled: true
small:
width: 800
threshold: 1000 # Only process images above this width
big:
width: 1600
threshold: 2000
content:
enabled: true
small:
width: 480
threshold: 600
big:
width: 1024
threshold: 1200