Skip to main content
Version: 3.x


Represents a product image.

type ProductImage {
id: ID!
alt: String
sortOrder: Int
url(size: Int, format: ThumbnailFormatEnum = ORIGINAL): String!

Fields ● ID! non-null scalar

The ID of the image.

ProductImage.alt ● String scalar

The alt text of the image.

ProductImage.sortOrder ● Int scalar

The new relative sorting position of the item (from -inf to +inf). 1 moves the item one position forward, -1 moves the item one position backward, 0 leaves the item unchanged.

ProductImage.url ● String! non-null scalar

The URL of the image.

ProductImage.url.size ● Int scalar

Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).

ProductImage.url.format ● ThumbnailFormatEnum enum

The format of the image. When not provided, format of the original image will be used.

Added in Saleor 3.6

Member of

Product object ● ProductVariant object

Was this page helpful?