Skip to content

VariantPreset

type VariantPreset =
| "thumb"
| "sm"
| "md"
| "lg"
| "xl"
| "original"
| "poster"
| "video"
| "aiproxy"
| "mp3";

Defined in: packages/asset-client/src/index.ts:26

Image presets are size-based (Vercel next/image style):

  • thumb is the only square crop — semantic icon use case
  • sm/md/lg are max-side bounding boxes that preserve aspect ratio

Naming over the legacy thumbnail/cover/web/hero because the new names say what the variant IS (a size class) rather than what it might be USED for, removing the implicit landscape-only assumption that bit us with vertical product photos.