> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/objects/product-image

# ProductImage Object

Represents a product image.

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

<a id="fields"></a>

### Fields

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

The ID of the image.

<a id="alt"></a>

#### [`alt`](#alt) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

The alt text of the image.

<a id="sort-order"></a>

#### [`sortOrder`](#sort-order) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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.

<a id="url"></a>

#### [`url`](#url) ● [`String!`](/api-reference/miscellaneous/scalars/string.md)

The URL of the image.

<a id="product-image-url-size"></a>

##### [`size`](#product-image-url-size) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

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

<a id="product-image-url-format"></a>

##### [`format`](#product-image-url-format) ● [`ThumbnailFormatEnum`](/api-reference/miscellaneous/enums/thumbnail-format-enum.md)

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

<a id="member-of"></a>

### Member Of

[`Product`](/api-reference/products/objects/product.md) object  ● [`ProductVariant`](/api-reference/products/objects/product-variant.md) object
