How can you disable image compression on mobile version?

All the images I upload via the image elements from shopify get blurry on mobile while looking fine on desktop. How can I solve this? If important, I’m using the Dawn theme.

Hi @cvv
Can you please share the store URL. So i can check and guide you.

Sure, the store url is exivonutrition .com, the pw is jdienri8476684

Hi @cvv
Thank you for the URL

Can you point out any specific sections on store where it get blurry

If possible share me screenshots of that sections so i can check it.

Currently I am facing the issue on one specific product page.

That payment section is the image.

Hi @cvv

You can follow the steps below to fix this issue
Go to your Online Store

  1. Click on “Themes.”
  2. Select “Edit code”
  3. Search image-with-text.liquid
  4. Open the file,
  5. Check below screen shot remove the mentioned sizes it should look like this
    1.  {%- assign widths = '535, 750, 1070, 1500' -%}
      

Thanks for the tip, but I tried it and it didn’t work.

Hi @cvv,

Please add image and send me the link. I will check it

Hi namphan,

here is the image:

The link to the specific productpage is https://exivonutrition.com/products/ashwagandha-and-black-pepper-supplement-60-capsules?selling_plan=692401930564&variant=55301578260804

But I recommend to paste the link into the search engine, because for some reason I am unable to send you the link that directly leads to the page when clicking on it.

Hi @cvv,

Please go to Actions > Edit code > sections > image-with-text.liquid file and change code here:

Code:

{{
                section.settings.image
                | image_url: width: section.settings.image.width
                | image_tag: sizes: '100vw', widths: widths, fetchpriority: fetch_priority
              }}
1 Like

Thank you so much, that did a great job.

Just a warning – this will actually apply to all you “image with text” sections and will negatively affect desktop Pagespeed score causing “..properly size your images” recommendation.

1 Like

Hi @cvv,

It’s my pleasure :blush: