Docsfrontbacked.js reference
On this page

Images reference

Build resized image URLs and responsive image sources.

Method signatures

js

Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →

Before you begin: Skins and support reference.

Image Helpers

Frontbacked.image.resize(source, options) builds a resized URL for a Frontbacked-owned image. source can be a URL string or a file metadata object returned from an upload. At least one of w/width or h/height is required.

js

Reference excerpt: use this with the page, variables and functions described in this guide. Try a complete example →

Frontbacked.image.srcset(source, entries) builds a comma-separated srcset string from resize option entries.

Frontbacked.image.url(source, options) is an alias for resize(...), useful when a theme reads more naturally with URL-oriented naming.

External image URLs are not transformed. Use the Image Resizing guide for the full option table and examples.

Continue with Video reference.