Woocommerce image pixels blurred and small. (1 post)

  1. naquiuddin
    Posted 2 years ago #


    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?


Topic Closed

This topic has been closed to new replies.

About this Topic