Headless API
SDK reference
hydrogen
lib
image

lib/image

Variables

ICON_IMAGE_SIZE

const ICON_IMAGE_SIZE: 260 = 260;

Render size in px for a card/modal icon — matches processShopifyImage(url, 260) on the theme side.

Functions

sizeShopifyImage()

function sizeShopifyImage(url, size): string;

Parameters

ParameterType
urlstring
sizenumber

Returns

string