Library preview image

A stand-in image object used when previewing theme catalogue blocks in the seller admin.

A stand-in image object used when previewing theme catalogue blocks in the seller admin. Mirrors ImageDrop for preview renders but is not used on live sites. The source is an image URL string rather than an uploaded blob.

Properties

height

The intrinsic height of the image.

Returns: nil — always nil in preview renders, since there's no blob to analyze.

large_url

A URL for the image at large size (960px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

medium_url

A URL for the image at medium size (720px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

name

The image filename, derived from the URL path.

Returns: String — the filename when the URL has a path; otherwise the full URL.

signature

The image signature used to bust caches on live sites.

Returns: nil — always nil in preview renders.

small_url

A URL for the image at small size (540px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

thumbnail_url

A URL for the image at thumbnail size (405px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

url

The original image URL.

Returns: String

width

The intrinsic width of the image.

Returns: nil — always nil in preview renders, since there's no blob to analyze.

xlarge_url

A URL for the image at xlarge size (1140px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

xxlarge_url

A URL for the image at xxlarge size (1920px max width). In preview renders, returns the same URL as url without resizing.

Returns: String

On this page