image
The image object, such as a collection or product image.
Visit the SHOPLINE Help Center to learn about the image formats supported by SHOPLINE.
Properties
The alt text of the image.
The aspect ratio of the image as a decimal.
Returns true if the image is associated with a variant.
The height of the image in pixels.
The ID of the image.
If you reference the id property for preview images of generic_file or media objects, then null is returned.
The media type of the image. Always returns image.
The position of the image in the product.images or product.media array.
A preview image for the image.
The preview_image property is only available for images accessed through the following sources:
If you reference this property on an image from another source, then null is returned.
The ID of the product that the image is associated with.
The product_id property is only available for images associated with a product. If you reference this property on an image from another source, then 'null' is returned.
The relative URL of the image.
The width of the image in pixels.