The image in the woocommerce’s product page is blurred and unclear. You can see this using the below link.
I tried changing the CSS and regenerated the thumbnails, after changing the image dimensions in catalog settings of woocommerce but it still persists.
This issue is weird. I think the issue is in product-image.php file of woocommerce which is returning small, thumbnail size image instead of the medium one. Here is the code that returns the image.
$image = get_the_post_thumbnail( $post->ID, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) ); $image_title = esc_attr( get_the_title( get_post_thumbnail_id() ) ); $image_link = wp_get_attachment_url( get_post_thumbnail_id() ); $attachment_count = count( $product->get_gallery_attachment_ids() );
Any idea what is going wrong?
- The topic ‘Woocommerce image pixels blurred and small.’ is closed to new replies.