Skip to main content

Image Styles — converter mapping

Theme Settings → Components → Image Styles · ✅ Populated

An Image Style is a reusable image treatment applied as a scoped .imgs-{slug} class — crop / aspect, corner radius or circle, shape masks, a CSS filter (incl. a duotone tint), and a legibility scrim. The converter reads the source’s images, clusters them by shape + crop + filter, and derives named styles.

Full reference: Image Styles (how it’s coded + examples).

Where it lives

Option schemaframework/extensions/shortcodes/includes/theme-settings/components-image-styles.php
Converter methodFW_Site_Converter_Stitch::build_image_styles()
Storage keyimage_styles
Producesa .imgs-{slug} class per style — pick it on any element with an image (Styling → Image Style)

The converter clusters the source images by (radius-or-circle · aspect · filter), names each cluster by its dominant trait (Circle / Monochrome / Square / Wide / Portrait / Rounded), and fills the crop + radius/circle + filter. Decorative masks (hexagon / blob / arch…), the duotone tint, the scrim and one-off CSS are left for you to add — they’re rarely reproducible from a photo alone.

Coverage

5/9 fields derived from the source (56%) — 🟡 0 via CSS · ⚪ 4 default/manual · ⚙️ 0 auto.

Group / fieldTypeStatusDerived from / note
Style (image_styles box)
style_nametext✅ NativeAuto-named by the dominant trait — Circle / Monochrome / Square / Wide / Portrait / Rounded
aspectselect✅ NativeThe source crop ratio (object-fit: cover); Auto keeps native
radiustext✅ NativeCorner radius (blank when the image is a circle)
maskmulti-picker✅ Nativecircle when the source image is round, else none; decorative masks (hexagon / blob / arch…) aren’t auto-detected
filterselect✅ Nativegrayscale / sepia / contrast / saturate / blur, from the source
duo_colorcompact color⚪ UnmappedOnly used by the Duotone filter — set by hand
scrimselect⚪ UnmappedLegibility scrim — set by hand (default none)
scrim_colorcompact color⚪ UnmappedSet by hand
custom_csscode-editor ({{SELECTOR}})⚪ UnmappedNot derived — one-off image CSS by hand
What’s detected vs. left manual

The converter reproduces the treatments it can read off the rendered image — the crop ratio, a circle / rounded corner, and a CSS filter (grayscale, sepia, etc.). It does not guess decorative shape masks, a duotone tint colour, or a caption scrim, since those aren’t reliably inferable — pick them on the preset if the source uses them.

Status legend

  • Native — Derived and written from a source signal.
  • 🟡 Via CSS — Reproduced via generated CSS; the native option is left empty (candidate to promote).
  • Unmapped — Left at default — no source signal, or set by hand.
  • ⚙️ Auto — Plumbing. Excluded from the coverage percentage.

← Back to Components