Skip to main content
Log inSign up
object

Represents an image resource.

Anchor to Fields and connectionsFields and connections

•

A word or phrase to share the nature or contents of an image.

•

The original height of the image in pixels. Returns null if the image isn't hosted by Shopify.

•

A unique ID for the image.

•

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

•

A list of custom fields that a merchant associates with a Shopify resource.

•
URL!non-null

The location of the image as a URL.

If no transform options are specified, then the original image will be preserved including any pre-applied transforms.

All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored.

If you need multiple variations of the same image, then you can use GraphQL aliases.

•

The original width of the image in pixels. Returns null if the image isn't hosted by Shopify.

Show
deprecated fields and connections Deprecated
•
URL!non-nullDeprecated

The location of the original image as a URL.

If there are any existing transformations in the original source URL, they will remain and not be stripped. Use url instead.

•
URL!non-nullDeprecated

The location of the image as a URL. Use url instead.

•
URL!non-nullDeprecated

The location of the transformed image as a URL.

All transformation arguments are considered "best-effort". If they can be applied to an image, they will be. Otherwise any transformations which an image type doesn't support will be ignored. Use url(transform:) instead


Was this section helpful?


Was this section helpful?