Currently, PointerMediaImageItem
and IImageItem
in Litium Storefront GraphQL only return a limited set of image properties:
height
width
alt
filename
url
fragment Image on IImageItem {
dimension
{
height
width
}
alt
filename
url
}
While these basic fields are useful, many projects rely on custom image fields to identify image types, classifications, and other metadata. For example, in our case, we use additional fields like:
ImageType
(e.g., product image, lifestyle image, logo)
UsageContext
(e.g., mobile, desktop, print)
DisplayOrder
Cloudinarybild
Camera angle
Extending the GraphQL response to include custom image fields would eliminate the need for separate API calls to fetch extended metadata. This enhancement would simplify development, improve performance, and provide more flexible, enriched media handling directly within the Storefront GraphQL queries.