I have a high resolution which has text in the image itself. when I go to the site a large monitor the image looks very blurry. I have realized that this is due to Shopify’s Dynamic Image Resizing. Since the largest screen size Shopify’s Dawn Theme has in it’s code is 1500w larger monitors need to stretch the image to fit the large screen making a perfectly good image look blurry. Does anyone know how to add larger screen size to the code so that images will have more pixels on large screens?
Yes, you can add larger screen sizes to the code of your Shopify theme in order to avoid the blurring of images on large screens. You can do this by editing the CSS of your theme to add media queries that target specific screen sizes and adjust the size of images accordingly.
Here’s an example of how you could add a media query for screens larger than 1500px:
This will prevent the image from being resized on larger screens and will keep the image at its original size. You’ll need to replace .your-image-class with the actual class of your image element in the HTML.
Additionally, you can also add high-resolution versions of your images by using the srcset attribute in the <img> tag. For example:
This way, the browser can choose the best image for the screen size, ensuring the highest quality display of your images on all devices.