All things Shopify and commerce
Dear all,
How can I reduce zoom level when hover on product image instead of changing image quality in Warehouse theme? cuz the image is blur when I hover the image. Please help me if someone know how to fix it.
Best,
Solved! Go to the solution
This is an accepted solution.
I found my way of how to fix zoom level. There is two options, first is you need to upload your product image with high resolution (when I ask theme support they said you can't control zoom level you need high quality images). So I don't agree with that & there is no way to upload images again. So my Second option is if you uploaded your product so far & you can't uploading images again, try with my solution.
In product-gallery.liquid, search data-zoom & change {{ media | img_url: '500x' }}
<img class="product-gallery__image lazyload image--blur-up" src="{{ media | img_url: '60x' }}" data-src="{{ image_url }}" data-widths="[{{ supported_sizes }}]" data-sizes="auto" data-zoom="{{ media | img_url: '500x' }}" alt="{{ media_alt | escape }}">
with {{ media | img_url: 'master' }} (master means keeping up with original image size)
<img class="product-gallery__image lazyload image--blur-up" src="{{ media | img_url: '60x' }}" data-src="{{ image_url }}" data-widths="[{{ supported_sizes }}]" data-sizes="auto" data-zoom="{{ media | img_url: 'master' }}" alt="{{ media_alt | escape }}">
You can see the reference about image sizing in this link.
This is an accepted solution.
I found my way of how to fix zoom level. There is two options, first is you need to upload your product image with high resolution (when I ask theme support they said you can't control zoom level you need high quality images). So I don't agree with that & there is no way to upload images again. So my Second option is if you uploaded your product so far & you can't uploading images again, try with my solution.
In product-gallery.liquid, search data-zoom & change {{ media | img_url: '500x' }}
<img class="product-gallery__image lazyload image--blur-up" src="{{ media | img_url: '60x' }}" data-src="{{ image_url }}" data-widths="[{{ supported_sizes }}]" data-sizes="auto" data-zoom="{{ media | img_url: '500x' }}" alt="{{ media_alt | escape }}">
with {{ media | img_url: 'master' }} (master means keeping up with original image size)
<img class="product-gallery__image lazyload image--blur-up" src="{{ media | img_url: '60x' }}" data-src="{{ image_url }}" data-widths="[{{ supported_sizes }}]" data-sizes="auto" data-zoom="{{ media | img_url: 'master' }}" alt="{{ media_alt | escape }}">
You can see the reference about image sizing in this link.
The product photo zoom seems to only work on the desktop version, is there a way to zoom photos using the mobile version with the warehouse theme??
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024