---
title: "MediaImage"
description: "Represents a Shopline hosted image"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/media-image'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/media-image.md'
---
# MediaImage

Represents a Shopline hosted image

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

## Type Signature

`MediaImage`

## Fields

* `alt`

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

  A word or phrase to share the nature or contents of a media.

* `id`

  [ID!](https://developer.shopline.com/docs/storefront-api/common/scalars/id.md)

  A globally-unique ID.

* `image`

  [Image](https://developer.shopline.com/docs/storefront-api/common-objects/objects/image.md)

  The image for the media.

* `mediaContentType`

  [MediaContentType!](https://developer.shopline.com/docs/storefront-api/common-objects/enums/media-content-type.md)

  The media content type.

* `previewImage`

  [Image](https://developer.shopline.com/docs/storefront-api/common-objects/objects/image.md)

  The preview image for the media.

## Schema Definition

```graphql
type MediaImage { 
	alt: String
	id: ID!
	image: Image
	mediaContentType: MediaContentType!
	previewImage: Image 
}
```

## Error Handling

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

