Hwaro::Models::ImageProcessingConfig
Image processing configuration
Enables automatic image resizing during build using stb (statically linked).
Supports JPG, PNG, BMP. No external tools required. formats = ["webp"]
also writes a WebP copy of every width variant (pure-Crystal encoder).
Config example (config.toml):
[image_processing]
enabled = true
widths = [320, 640, 1024, 1280]
quality = 85
formats = ["webp"] # extra output formats beside the source's own
dimensions = true # intrinsic width/height on content
# (independent of
enabled)
Constants
VALID_FORMATS = {"webp"}
Constructors
new
SourceInstance methods
dimensions
Sourceenabled
Sourceformats
Sourcelqip_enabled
Sourcelqip_quality
Sourcelqip_width
Sourcequality
Sourcewidths
Source