Media Image
Requires access scope, access scope, access scope, access scope, access scope, access scope or access scope.
The object represents an image hosted on Shopify's
content delivery network (CDN).
Shopify CDN is a content system that serves as the primary way to store,
manage, and deliver visual content for products, variants, and other resources across the Shopify platform.
The object provides information to:
- Store and display product and variant images across online stores, admin interfaces, and mobile apps.
- Retrieve visual branding elements, including logos, banners, favicons, and background images in checkout flows.
- Retrieve signed URLs for secure, time-limited access to original image files.
Each object provides both the processed image data (with automatic optimization and CDN delivery)
and access to the original source file. The image processing is handled asynchronously, so images
might not be immediately available after upload. The
status
field indicates when processing is complete and the image is ready for use.
The object implements the Media
interface alongside other media types, like videos and 3D models.
Learn about managing media for products, product variants, and asynchronous media management.
Anchor to FieldsFields
- alt (String)
- createdAt (DateTime!)
- fileErrors ([FileError!]!)
- fileStatus (FileStatus!)
- id (ID!)
- image (Image)
- mediaContentType (MediaContentType!)
- mediaErrors ([MediaError!]!)
- mediaWarnings ([MediaWarning!]!)
- mimeType (String)
- originalSource (MediaImageOriginalSource)
- preview (MediaPreviewImage)
- status (MediaStatus!)
- translations ([Translation!]!)
- updatedAt (DateTime!)
- •String
A word or phrase to share the nature or contents of a media.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was created.
- Anchor to fileErrorsfile•[File
Errors Error!]! non-null Any errors that have occurred on the file.
- Anchor to fileStatusfile•File
Status Status! non-null The status of the file.
- •ID!non-null
A globally-unique ID.
- Anchor to imageimage•Image
The image for the media. Returns
nulluntilstatusis.- Anchor to mediaContentTypemedia•Media
Content Type Content Type! non-null The media content type.
- Anchor to mediaErrorsmedia•[Media
Errors Error!]! non-null Any errors which have occurred on the media.
- Anchor to mediaWarningsmedia•[Media
Warnings Warning!]! non-null The warnings attached to the media.
- Anchor to mimeTypemime•String
Type The MIME type of the image.
- Anchor to originalSourceoriginal•Media
Source Image Original Source The original source of the image.
- Anchor to previewpreview•Media
Preview Image The preview image for the media.
- Anchor to statusstatus•Media
Status! non-null Current status of the media.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
- Anchor to localelocale•String!required
Filters translations locale.
- Anchor to marketIdmarket•ID
Id Filters translations by market ID. Use this argument to retrieve content specific to a market.
Arguments
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time (ISO 8601 format) when the file was last updated.
Deprecated fields
- metafield (Metafield): deprecated
- metafields (MetafieldConnection!): deprecated
- Anchor to metafieldmetafield•MetafieldDeprecated
- Anchor to namespacenamespace•String
The container the metafield belongs to. If omitted, the app-reserved namespace will be used.
- •String!required
The key for the metafield.
Arguments
- Anchor to metafieldsmetafields•Metafield
Connection! non-nullDeprecated - Anchor to namespacenamespace•String
The metafield namespace to filter by. If omitted, all metafields are returned.
- Anchor to keyskeys•[String!]
List of keys of metafields in the format
namespace.key, will be returned in the same format.- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
Anchor to InterfacesInterfaces
- File
- HasMetafields
- HasPublishedTranslations
- Media
- Node
- •interface
- •interface
- •interface
- •interface