---
title: "Image"
description: "Represents image resources."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/image'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/image.md'
---
# Image

Represents image resources.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Image`

## Fields

* `altText`

  [String](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/string.md)

  Words or phrases that share the characteristics or content of images.

* `height`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The image's original height  (in pixels).

* `id`

  [ID](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The image's unique ID.

* `url`

  [URL](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/url.md)

  The image's location represented as a URL.

* `width`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The image's original width  (in pixels). 

## Schema Definition

```graphql
type Image { 
	altText: String
	height: Int
	id: ID
	url: URL
	width: Int 
}
```

## Field from

* [ImageEdge](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/image-edge.md).node

  Node of the Image.

* [Shop](https://developer.shopline.com/docs/admin-graph-ql-api/store-properties/objects/shop.md).uploadedImagesByIds

  List of images uploaded to the store.

* [ImageConnection](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/image-connection.md).nodes

  List of nodes contained within a ImageEdge.

* [ProductVariant](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-variant.md).image

  The image of the variant.

* [Collection](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection.md).banner

  The banner associated with the collection.

* [Collection](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/collection.md).image

  The cover image for collection

* [Product](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product.md).featuredImage

  The product's featured image.

* [MediaImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-image.md).image

  The image of the media. Returns null if the status is not READY.

* [MediaPreviewImage](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/media-preview-image.md).image

  The preview image of the media. Returns null if the status is not READY.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

