Stencil
Themes
Page context
Theme object reference
Elements
imageDimension

imageDimension

Used to set image ratio on theme setting.

imageDimension
{
  "type": "imageDimension",
  "id": "blog_size",
  "force_reload": true,
  "label": "i18n.SizeOfImages",
  "options": [
    {
      "value": "190x250",
      "label": "i18n.OptimizedForTheme"
    },
    {
      "value": "custom",
      "label": "i18n.SpecifyDimensions"
    }
  ]
},

Required fields: type, label, id, and options.

"custom" value option will allow users to specify the width/height. Else, use values set by the theme developer. An example image follows

https://storage.googleapis.com/bigcommerce-production-dev-center/images/theme_styles_imageDimension.png

Did you find what you were looking for?