A space to discuss online store customization, theme development, and Liquid templating.
{% if seo_media -%}
{%- assign media_size = seo_media.preview_image.width | append: 'x' -%}
"image": [
{{ seo_media | img_url: media_size | prepend: "https:" | json }}
],
{%- endif %}
or
{%- if product.featured_media.src -%}
{%- assign media_size = product.featured_media.preview_image.width | append: 'x' -%}
"image": [
{{ product.featured_media.src | img_url: media_size | prepend: "https:" | json }}
],
{%- endif -%}