image filter with skipLargerDimension and skipLargerFilesize
Some checks failed
deploy to production / deploy (push) Failing after 1m46s

This commit is contained in:
Sebastian Frank 2024-04-23 09:57:12 +00:00
parent de1aaadc46
commit cbdd8cef97
Signed by: apairon
SSH Key Fingerprint: SHA256:lYVOnGlR42QHj7wuqfFgGw8cKbfyZUpzeRDGVBBAHQU
4 changed files with 44 additions and 15 deletions

View File

@ -10,28 +10,46 @@ xs:
height: 90
width: 90
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
s:
- fit: true
height: 300
width: 300
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
m:
- fit: true
height: 600
width: 600
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
l:
- fit: true
height: 1200
width: 1200
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
xl:
- fit: true
height: 2000
width: 2000
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
xxl:
- fit: true
height: 4000
width: 4000
resampling: lanczos
quality: 75
skipLargerDimension: true
skipLargerFilesize: true

View File

@ -57,31 +57,41 @@ imageFilter:
height: 90
width: 90
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
s:
- fit: true
height: 300
width: 300
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
m:
- fit: true
height: 600
width: 600
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
l:
- fit: true
height: 1240
width: 1240
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
xl:
- fit: true
height: 2000
width: 2000
resampling: lanczos
quality: 60
quality: 75
skipLargerDimension: true
skipLargerFilesize: true
fields:
- name: type

View File

@ -20,7 +20,6 @@
- [fields](projektkonfig/collections/fields.md)
- [Datentypen](projektkonfig/collections/fields/datentypen.md)
- [Admin Widgets](projektkonfig/collections/fields/widgets.md)
- [· ContentBuilder](projektkonfig/collections/fields/widgets/contentbuilder.md)
- [indexes](projektkonfig/collections/indexes.md)
- [hooks](projektkonfig/collections/hooks.md)
- [imageFilter](projektkonfig/collections/imageFilter.md)

View File

@ -27,3 +27,5 @@ Folgende Attribute können Filter-Eintrage haben, wobei `fit` und `fill` exklusi
| `grayscale` | boolean | Schwarz-Weiß |
| `resampling` | "lanczos"<br>"nearestNeighbor"<br>"linear"<br>"catmullRom" | Resampling-Algorithmus |
| `quality` | number | Ausgabequalität 0..100 |
| `skipLargerDimension` | boolean | Bild wird nicht manipuliert, wenn es kleiner ist als das angegebene Rechteck |
| `skipLargerFilesize` | boolean | Bild wird nicht manipuliert, wenn das Zielbild eine größere Dateigröße hat als das Original |