lust/tests/configs/realtime-mode.yaml

35 lines
1.2 KiB
YAML

backend:
filesystem: # Use the filesystem backend.
directory: "data"
global_cache:
max_images: 1000 # At most cache 1000 images.
max_capacity: 500 # 500MB max capacity.
buckets:
user-profiles: # Define a bucket called "user-profiles", this is accessable out of `/images/user-profiles`.
mode: realtime # Optimise images as and when they're required then store them.
formats:
png: true # Disable PNG encoding.
jpeg: true # Enable JPEG encoding.
webp: true # Enable WebP encoding.
gif: false # Disable GIF encoding.
original_image_store_format: jpeg
webp_config:
quality: 80 # Set lossy quality to 80%
method: 4 # Opt on the side of performance slightly more than quality.
threading: true # Enable multi-threaded encoding.
default_serving_format: png # Serve the WebP format by default.
default_serving_preset: medium-square # Use the "medium-square" sizing preset by default.
presets:
medium-square: # Define a new resizing preset.
width: 500 # 500px
height: 500 # 500px
cache: null # Use the global cache handler.