Is it possible to create new metafiled for the product image?

Topic summary

Main issue: Whether custom metafields can be created directly on a product image resource (to store a blurhash) rather than on the product.

Context: A GraphQL Admin API query shows product images expose fields (id, url, altText) and a metafields connection. The response appears to include a metafield with key “alt”. The requester wants to add another metafield (e.g., blurhash) at the image level for simpler frontend usage. Metafields are custom fields for storing structured data; blurhash is a compact string used for image placeholders.

Responses:

  • Suggestion: Add a metafield to the product and associate/link it to corresponding images.
  • Requester notes this works but prefers true image-level metafields for direct access.

Status: No confirmed method or example provided to create custom metafields on the image resource itself. The thread does not establish whether Shopify supports user-defined metafields on product images beyond built-in fields like alt/altText.

Open question: Can custom metafields be created on product images, or is product-level storage the only supported approach?

Summarized with AI on December 30. AI used: gpt-5.

I just found that Product images do have metafield

query {
    products(first:10){
        edges{
            node{
                id
                images(first:40){
                    nodes{
                        id
                        url
                        altText
                        metafields(first:2){
                            nodes{
                                key
                                value
                            }
                        }
                    }
                }
            }
        }
    }
}

From the response of above query we can see that images do have metafield with key “alt”.

Is it possible to add one more metafiled there,
I am working on one project where I need to store blurhash of a product, and if this is possible its the perfect place to store the blurhash

MetaField can be added to product and from there it can be linked to product images.

Yeah, Thats true,

But isn’t it great if I can have access to create metafield to image. Life will easier for the frontend guy to read its blurhash directly from the image resource.