How Can I Set Fixed Image Ratio In A Page?

Topic summary

A user is experiencing automatic image cropping when uploading pictures to a banner section on their online store. They want to maintain the original image aspect ratio without automatic cropping.

Issue Details:

  • Images are being automatically cropped when uploaded to banners
  • User has shared example images showing the desired vs. actual output
  • User provided a page URL for troubleshooting

Troubleshooting Attempts:

  • User cannot locate </body> tag in their theme files
  • Shared code from theme.liquid file showing article card rendering logic
  • Attempted a suggested fix but reported no changes occurred

Current Status:

  • The issue remains unresolved
  • User appears to be working with Shopify theme customization (based on Liquid template code)
  • Multiple screenshots were shared to illustrate the problem, though the actual solution or next steps are not visible in the conversation
Summarized with AI on November 10. AI used: claude-sonnet-4-5-20250929.

How Can I Set Fixed Image Ratio In A Page?

How can I upload a image just it is?

I uploaded picture in a banner, and it automatically crops the image.

this is the image I want to upload.

This is how it comes.

https://rinmo.jp/pages/size-chart

Thank you.

Could you check this please?

https://rinmo.jp/pages/%E3%82%B5%E3%82%A4%E3%82%BA%E3%82%AC%E3%82%A4%E3%83%89

Thank you.

I couldn’t find

There is no as well…

This is all I find in the heme.liquid

{% comment %}
Renders an article card for a given blog with settings to either show the image or not.

Accepts:

  • blog: {Object} Blog object
  • article: {Object} Article object
  • media_aspect_ratio: {String} The setting changes the aspect ratio of the article image, if shown
  • media_height: {String} The setting changes the height of the article image. Overrides media_aspect_ratio.
  • show_image: {String} The setting either show the article image or not. If it’s not included it will show the image by default
  • show_date: {String} The setting either show the article date or not. If it’s not included it will not show the image by default
  • show_author: {String} The setting either show the article author or not. If it’s not included it will not show the author by default
  • show_badge: {String} The setting either show the blog badge or not.
  • lazy_load: {Boolean} Image should be lazy loaded. Default: true (optional)

Usage:
{% render ‘article-card’ blog: blog, article: article, show_image: section.settings.show_image %}
{% endcomment %}

{%- if article and article != empty -%}
{%- liquid
assign ratio = 1
if media_aspect_ratio != null
assign ratio = media_aspect_ratio
endif
-%}

{% comment %} {% endcomment %}
{%- if show_image == true and article.image -%}
{% comment %}theme-check-disable ImgLazyLoading{% endcomment %} {{ article.image.src.alt | escape }} {% comment %}theme-check-enable ImgLazyLoading{% endcomment %}
{%- endif -%}

{{ article.title | truncate: 50 | escape }}

{%- if show_date -%} {{ article.published_at | time_tag: format: 'date' }} {%- endif -%} {%- if show_author -%} {{ article.author }} {%- endif -%}
{%- if show_excerpt -%} {%- if article.excerpt.size > 0 or article.content.size > 0 -%}

{%- if article.excerpt.size > 0 -%} {{ article.excerpt | strip_html | truncatewords: 30 }} {%- else -%} {{ article.content | strip_html | truncatewords: 30 }} {%- endif -%}

{%- endif -%}
{%- if article.comments_count > 0 and blog.comments_enabled? -%} {{ 'blogs.article.comments' | t: count: article.comments_count }} {%- endif -%}
{%- endif -%}
{%- if show_badge -%}
{{ 'blogs.article.blog' | t }}
{%- endif -%}

{{ article.title | truncate: 50 | escape }}

{%- if show_date -%} {{ article.published_at | time_tag: format: 'date' }} {%- endif -%} {%- if show_author -%} {{ article.author }} {%- endif -%}
{%- if show_excerpt -%} {%- if article.excerpt.size > 0 or article.content.size > 0 -%}

{%- if article.excerpt.size > 0 -%} {{ article.excerpt | strip_html | truncatewords: 30 }} {%- else -%} {{ article.content | strip_html | truncatewords: 30 }} {%- endif -%}

{%- endif -%}
{%- if article.comments_count > 0 and blog.comments_enabled? -%} {{ 'blogs.article.comments' | t: count: article.comments_count }} {%- endif -%}
{%- endif -%}
{%- if show_badge -%}
{{ 'blogs.article.blog' | t }}
{%- endif -%}
{%- endif -%}

Thank you.

I tried, but it didn’t change anything.