Image
Represents an image resource.
Anchor to Fields and connectionsFields and connections
- Anchor to altTextalt•String
Text A word or phrase to share the nature or contents of an image.
- Anchor to heightheight•Int
The original height of the image in pixels. Returns
null
if the image isn't hosted by Shopify.- •ID
A unique ID for the image.
- Anchor to metafieldmetafield•Metafield
A custom field, including its
namespace
andkey
, that's associated with a Shopify resource for the purposes of adding and storing additional information.- Anchor to metafieldsmetafields•Metafield
Connection! non-null A list of custom fields that a merchant associates with a Shopify resource.
- •URL!non-null
The location of the image as a URL.
If no transform options are specified, then the original image will be preserved including any pre-applied transforms.
All transformation options are considered "best-effort". Any transformation that the original image type doesn't support will be ignored.
If you need multiple variations of the same image, then you can use GraphQL aliases.
- Anchor to widthwidth•Int
The original width of the image in pixels. Returns
null
if the image isn't hosted by Shopify.
Deprecated fields and connections
- Anchor to originalSrcoriginal•URL!
Src non-nullDeprecated - Anchor to privateMetafieldprivate•Private
Metafield Metafield Deprecated - Anchor to privateMetafieldsprivate•Private
Metafields Metafield Connection! non-nullDeprecated - •URL!non-nullDeprecated
- Anchor to transformedSrctransformed•URL!
Src non-nullDeprecated
Anchor to MutationsMutations
Deprecated mutations
- •mutationDeprecated
- Anchor to inputinput•Product
Append Images Input! required Specifies the new images and the product that they're being added to.
Arguments
- Anchor to newImagesnew•[Image!]
Images List of new images appended to the product.
- Anchor to productproduct•Product
The product object.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields
- •mutationDeprecated
- Anchor to imageimage•Image
Input! required Image to be updated.
- Anchor to productIdproduct•ID!
Id required The ID of the product on which to update the image.
Arguments
- Anchor to imageimage•Image
The image that has been updated.
- Anchor to userErrorsuser•[User
Errors Error!]! non-null The list of errors that occurred from executing the mutation.
Fields