An image object represents and image that has been attached to a product, variant, collection or category. Each image is automatically processed to the following sizes when uploaded:

  • tiny - 16x16px
  • icon - 32x32px
  • thumbnail - 50x50px
  • small - 100x100px
  • medium - 240x240px
  • large - 480x480px
  • grande - 600x600px
  • original - the original uploaded image

Properties:

id - Integer - Unique id of the image

name - String - Name of the image

alt_text - String - A string meant to be used as the value for the alt attribute of an HTML img tag

tiny_url - String - URL for the tiny size

icon_url - String - URL for the icon size

thumbnail_url - String - URL for the thumbnail size

small_url - String - URL for the small size

medium_url - String - URL for the medium size

large_url - String - URL for the large size 

grande_url - String - URL for the grande size

original_url  - String - URL for the original size

Did this answer your question?