class

Hwaro::Models::ImageProcessingConfig

Inherits Reference / Object

Image processing configuration

Enables automatic image resizing during build using stb (statically linked). Supports JPG, PNG, BMP. No external tools required.

Config example (config.toml): [image_processing] enabled = true widths = [320, 640, 1024, 1280] quality = 85

Constructors

Instance methods

enabled
Source
enabled=(enabled : Bool)
Source
lqip_enabled
Source
lqip_enabled=(lqip_enabled : Bool)
Source
lqip_quality
Source
lqip_quality=(lqip_quality : Int32)
Source
lqip_width
Source
lqip_width=(lqip_width : Int32)
Source
quality
Source
quality=(quality : Int32)
Source
widths
Source
widths=(widths : Array(Int32))
Source