Related services: MediaHelperService —
lynkow.mediaHelper.srcset(),lynkow.mediaHelper.transform()
ImageVariants
Interface
CDN image variant URLs generated by the Lynkow image transformation service.
Each property is a pre-generated URL for a specific size/crop preset.
All URLs are served through the Lynkow CDN and support WebP/AVIF
auto-negotiation via the Accept header. A property is undefined only
when the endpoint returning this object excludes that preset from its
response (e.g. category images omit medium/content). For featured
images on content and pages, the six variants thumbnail, card,
medium, content, hero, and og are always present. The CDN uses
a scale-down fit that preserves the original size when the source
image is smaller than the target preset, so every URL is safe to use
in src or srcset regardless of the source dimensions.
Use the smallest variant that fits your layout to minimize bandwidth.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | 128x128px, cover crop with face detection gravity.<br>Use case: user avatars, author photos, profile pictures.<br>Face detection ensures faces are centered in the crop. |
|
| Yes | 600px wide, scaled down proportionally (no crop). The source aspect<br>ratio is preserved, so a portrait source returns a portrait variant.<br>Compose with |
|
| Yes | 1200px wide, scaled down proportionally (no crop).<br>Use case: inline images within article body content.<br>Serves the source at its native size when the original is narrower than 1200px. |
|
| Yes | 2560px wide, scaled down proportionally (no crop).<br>Use case: full-resolution display, lightbox/zoom views, retina hero images.<br>This is the largest available variant. Serves the source at its native size<br>when the original is narrower than 2560px. |
|
| Yes | 1920px wide, scaled down proportionally (no crop).<br>Use case: full-width hero banners, page headers, background images.<br>Serves the source at its native size when the original is narrower than 1920px. |
|
| Yes | 960px wide, scaled down proportionally (no crop).<br>Use case: medium-width displays, sidebar featured images, tablet layouts.<br>Serves the source at its native size when the original is narrower than 960px. |
|
| Yes | 1200x630px, cover crop.<br>Use case: Open Graph images, social media sharing (Facebook, LinkedIn, Twitter).<br>Dimensions follow the recommended OG image ratio (1.91:1). |
|
| Yes | 400px wide, scaled down proportionally (no crop), with sharpening.<br>The source aspect ratio is preserved, so a portrait source returns a<br>portrait variant. Compose with |
SrcsetOptions
Interface
Options for building srcset URLs
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Resize fit mode. |
|
| Yes | Focal point for |
|
| Yes | JPEG / WebP quality on a 1-100 scale. Higher values produce larger<br>files. Default |
|
| Yes | Pixel widths to generate in the srcset, in ascending order. Each<br>width becomes a |
TransformOptions
Interface
Options for building a single transformed URL. Each field maps to a query parameter understood by the Lynkow image transformation service; omit any value to let the CDN choose a sensible default.
Property | Type | Optional | Description |
|---|---|---|---|
|
| Yes | Device Pixel Ratio multiplier on a |
|
| Yes | Resize fit mode. See SrcsetOptions.fit for semantics; the<br>default here is |
|
| Yes | Output image format. |
|
| Yes | Focal point for |
|
| Yes | Target height in pixels. When set alone, width is derived from the<br>image's aspect ratio (unless |
|
| Yes | Image quality 1-100 (default: 80) |
|
| Yes | Target width in pixels. When set alone, height is derived from the<br>image's aspect ratio (unless |