• Resolved terreetterres

    (@terreetterres)


    Hello. Thumbnail images from the woocommerce gallery on the single product page are not cropped to ratio 1. Otherwise the gallery works fine. Thank you for your work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author AMP Enhancer

    (@ampenhancer)

    Hi @terreetterres

    Thank you for using our plugin and contacting us

    Regarding WooCommerce gallery image crop issue if possible could you please send us your product page url

    Thread Starter terreetterres

    (@terreetterres)

    Thank you for your reply. Here is the link to a page on my site in constructon where you can see the uncropped image issue in the woocommerce gallery.
    Here !

    • This reply was modified 3 years, 7 months ago by terreetterres.
    Plugin Author AMP Enhancer

    (@ampenhancer)

    Hi @terreetterres

    I tried to replicate the issue with same thing and image of your site but at my end the issue not occurring so could let us know how you are cropping your image to ratio 1 are you using any settings for that?

    Thread Starter terreetterres

    (@terreetterres)

    Hello @ampenhancer
    Yes this is correct, I am using the code below to crop the presentation image to ratio 1. If I disable this code the problem is the same.

    add_filter( 'woocommerce_get_image_size_single', 'my_set_product_img_size' );
    add_filter( 'woocommerce_get_image_size_shop_single', 'my_set_product_img_size' );
    add_filter( 'woocommerce_get_image_size_woocommerce_single', 'my_set_product_img_size' );
    function my_set_product_img_size()
    {
        $size = array(
            'width'  => 600,
            'height' => 600,
            'crop'   => 1,
        );
        return $size;
    }
    Plugin Author AMP Enhancer

    (@ampenhancer)

    @terreetterres thank you for sending the code now I have recreated the issue at my end and in our next update we will fix this issue

    Thread Starter terreetterres

    (@terreetterres)

    Thank you very much and good luck to you

    Plugin Author AMP Enhancer

    (@ampenhancer)

    Thanks, it would be great if you can share a review

    Plugin Author AMP Enhancer

    (@ampenhancer)

    Hi @terreetterres

    We have fixed the gallery image crop issue in our latest release of version 1.0.40

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Thumbnail images from the woocommerce gallery are not cropped’ is closed to new replies.