Image Processing Config

Einen Bildabschnitt in der config.toml mit Standard-Bildverarbeitungsoptionen konfigurieren, geht so:

[imaging]
# Default resample filter used for resizing. Default is Box, 
# a simple and fast averaging filter appropriate for downscaling.
# See https://github.com/disintegration/imaging
resampleFilter = "box"

# Default JPEG quality setting. Default is 75.
quality = 75

# Anchor used when cropping pictures.
# Default is "smart" which does Smart Cropping, using 
# https://github.com/muesli/smartcrop
# Smart Cropping is content aware and tries to find the best crop for each
# image.
# Valid values are Smart, Center, TopLeft, Top, TopRight, Left, Right, 
# BottomLeft, Bottom, BottomRight
anchor = "smart"

Alle oben genannten Einstellungen können auch pro Bildverarbeitung vorgenommen werden.

image processing

Photo by Bernard Hermant on Unsplash