Products, Variants & Inventory

Managing Product Images (Local Storage, Amazon S3, CloudFront CDN, and External URLs)

Published 2026-12-04 03:20:21

Image Sets (Thumbnail, Main, and Zoom)

Each product variant supports multiple Image Sets consisting of a Thumbnail image (catalog & search cards), Main image (product gallery), and optional Zoom image (hover lens & lightbox). Uploaded images allow up to 5 MB each, and existing sets include inline Replace uploaders.

Supported Storage Destinations

  1. Local Storage (public disk): Saves files into storage/app/public/images/thumbnails, mains, and zooms. Missing local folders are automatically detected and created on upload.
  2. Global Amazon S3 (.env config): Uploads to your configured AWS_BUCKET and optionally rewrites URLs through your per-image CDN URL or global CDN_URL (such as AWS CloudFront).
  3. Custom S3 Credentials: Define per-image-set S3 Region, Bucket, Access Key, Secret Key, and CDN prefix.
  4. External Direct URLs: Toggle Enter Image URLs to link directly to hosted supplier or CDN images (displays an amber External URLs badge and allows inline URL editing).

Image Resolution Priority & Auto-Commit

  • URL Priority Chain: (1) Direct External URLs are returned as-is; (2) Global/Custom S3 sets check per-image CDN URL → global CDN_URL → direct S3 URL; (3) Local disk sets resolve via /storage/....
  • Single-Set Auto-Commit: If you select a thumbnail and main image and click Save Variant & Stock or Save All Sections without clicking Add Image Set first, the Product Manager automatically commits your pending set.
  • Search Image Flag: Mark one active image set as the Search Image so catalog cards display the exact photo you want. Single-variant/single-set products lock the search image flag on automatically.

Aspect Ratio & Gallery Controls

Set global catalog orientation (16:9 widescreen or 1:1 square) in Admin → Settings → Shop Settings. Per-product controls in Advanced Settings also let you hide gallery thumbnails, show thumbnails inside variant selectors, or lock the gallery on top while scrolling on mobile screens (< 550px).

Was this article helpful?

Let us know how we can improve our documentation.