Image blurred inside zoom box
-
Hello!
I’m experiencing a problem of blurred images inside the zoom box.
I have the following settings:
In Appearance > Customize > Product images:
Miniature crop: no cropIn Yith Zoom Magnifier settings:
Image size: 1500px x 1500px
No cropIn functions.php file I put the following code:
`add_filter( ‘woocommerce_get_image_size_gallery_thumbnail’, ‘ci_theme_override_woocommerce_image_size_gallery_thumbnail’ );
function ci_theme_override_woocommerce_image_size_gallery_thumbnail( $size ) {
// Gallery thumbnails: proportional, max width 200px
return array(
‘width’ => ”,
‘height’ => 200,
‘crop’ => 0,
);
}add_filter( ‘woocommerce_get_image_size_thumbnail’, ‘ci_theme_override_woocommerce_image_size_thumbnail’ );
function ci_theme_override_woocommerce_image_size_thumbnail( $size ) {
// Catalog images: specific size
return array(
‘width’ => 600,
‘height’ => 600,
‘crop’ => 1,
);
}add_filter( ‘woocommerce_get_image_size_single’, ‘ci_theme_override_woocommerce_image_size_single’ );
function ci_theme_override_woocommerce_image_size_single( $size ) {
// Single product image: square
return array(
‘width’ => ”,
‘height’ => 1200,
‘crop’ => 0,
);
}If I analyze the page, I see:
tag <a> with for example href=”…product-title-600×440.jpg”
and inside the tag a, there is tag <img> with for example 1800 width, 1200 height,
So it seems that the zoom is done on 600×400 version of the image…How can I solve?
The page I need help with: [log in to see the link]
- The topic ‘Image blurred inside zoom box’ is closed to new replies.