class

Hwaro::Models::AutoImageConfig

Inherits Reference / Object

Auto-generated OG image configuration

Constructors

Instance methods

accent_bars

Whether to draw the thin top/bottom accent bars using accent_color. These are the classic "old school" OG accent lines, drawn for the pattern styles (default / dots / grid / diagonal / gradient / waves). Off by default for a cleaner, more modern look; set to true to opt in.

Source
accent_bars=(accent_bars : Bool)

Whether to draw the thin top/bottom accent bars using accent_color. These are the classic "old school" OG accent lines, drawn for the pattern styles (default / dots / grid / diagonal / gradient / waves). Off by default for a cleaner, more modern look; set to true to opt in.

Source
accent_color
Source
accent_color=(accent_color : String)
Source
background
Source
background=(background : String)
Source
background_image
Source
background_image=(background_image : String | Nil)
Source
enabled
Source
enabled=(enabled : Bool)
Source
font_path
Source
font_path=(font_path : String | Nil)
Source
font_size
Source
font_size=(font_size : Int32)
Source
format
Source
format=(format : String)
Source
lazy_generate

If true, skip automatic OG image generation during hwaro serve. Images will be generated on-demand the first time they are requested from the dev server. Greatly improves initial serve time on large sites.

Source
lazy_generate=(lazy_generate : Bool)

If true, skip automatic OG image generation during hwaro serve. Images will be generated on-demand the first time they are requested from the dev server. Greatly improves initial serve time on large sites.

Source
logo
Source
logo=(logo : String | Nil)
Source
logo_position
Source
logo_position=(logo_position : String)
Source
output_dir
Source
output_dir=(output_dir : String)
Source
overlay_opacity
Source
overlay_opacity=(overlay_opacity : Float64)
Source
pattern_opacity
Source
pattern_opacity=(pattern_opacity : Float64)
Source
pattern_scale
Source
pattern_scale=(pattern_scale : Float64)
Source
secondary_color

Optional second color for two-tone geometric styles (split / brutalist). When nil, a complementary tone is auto-derived from accent_color.

Source
secondary_color=(secondary_color : String | Nil)

Optional second color for two-tone geometric styles (split / brutalist). When nil, a complementary tone is auto-derived from accent_color.

Source
show_title
Source
show_title=(show_title : Bool)
Source
style
Source
style=(style : String)
Source
text_color
Source
text_color=(text_color : String)
Source
text_panel

Controls a semi-transparent panel behind the title/description area. Higher values make text more readable on busy/artistic backgrounds while still letting the background show through (0.0 = disabled). Modern editorial/brand styles benefit from 0.25~0.45.

Source
text_panel=(text_panel : Float64)

Controls a semi-transparent panel behind the title/description area. Higher values make text more readable on busy/artistic backgrounds while still letting the background show through (0.0 = disabled). Modern editorial/brand styles benefit from 0.25~0.45.

Source