focal_ point
The focal point for an image.
The focal point will remain visible when the image is cropped by the theme. Learn more about supporting focal points in your theme.
Tip
Tip: Use the <a href="/docs/api/liquid/filters/image_tag"><code><span class="PreventFireFoxApplyingGapToWBR">image<wbr/>_tag</span></code></a> filter to automatically apply focal point settings to an image on the storefront. This applies the focal point using the <code>object-position</code> CSS property.
Returned by
Anchor to Referencing the `focal_point` object directly
Referencing the focal_point object directly
focal_point object directlyWhen a object is referenced directly, the coordinates are returned as a string, in the format X% Y%.
{{ images['potions-header.png'].presentation.focal_point }}
Code
{{ images['potions-header.png'].presentation.focal_point }}Output
1.9231% 9.7917%
Output
1.9231% 9.7917%Was this section helpful?