Theme Images & Videos
Ship a lightweight website without preparing every image by hand. When Frontbacked processes a theme from GitHub or an uploaded package, it saves optimized copies of supported raster images instead of the originals.
Images keep their paths
PNG, JPEG, WebP, AVIF and GIF images are prepared as WebP, with a maximum width and height of 2,048 pixels. Smaller images are not enlarged. Animated images retain animation when supported; an image that cannot be prepared must be corrected before that release can publish. SVG files remain vectors.
Keep using your existing paths in HTML and CSS:
<img src="/assets/hero.png" alt="Explore our collection">
The URL still works even though Frontbacked serves an optimized image. The original file in your GitHub repository or on your computer is unchanged. Keep those originals if you need them for future editing.
Individual source images must be no larger than 20 MB or 40 million pixels. If image preparation fails, the new release does not publish. Your previously published version remains available.
Request the size you need
Source optimization makes the bundled images smaller. Use the image resizing API as well when the same image appears at different sizes, such as a small product card and a large gallery. Frontbacked reuses prepared sizes across requests.
Video files are skipped
Video files included in your theme source are not saved as theme assets. This includes MP4, MOV, WebM, MKV, AVI and other common video formats. A path such as /assets/intro.mp4 will not provide a playable video from the processed theme.
Use a Frontbacked video field to let a site owner upload video, then display that uploaded video with the video API. You can also reference a video hosted at an external URL that you control. Include a lightweight image as the poster or fallback for visitors who cannot play video.
This applies to newly processed theme releases. Publish an updated theme and select that release on a site to use its newly prepared images. Existing published versions keep their original files.