• Resolved marianssen

    (@marianssen)


    Hello,

    I have a custom function to resize the WooCommerce single image:

    add_filter(‘woocommerce_get_image_size_single’, function($size){
    $size[‘height’] = 527;
    $size[‘width’] = 686;
    return $size;
    });

    Vertical images do get resize correctly with a white background. However, horizontal images do not resize correctly, they just get cropped, without the white background. Are there any knows issues with the function above, or could this possibly be a plugin conflict?

    Thank you for your response.

    Regards,
    Marian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hello @marianssen

    Thank you for the feedback.

    Normally, the plugin works with any size no matter if it’s vertical or horizontal.
    Do you use a caching plugin? Can you send me the image you’re trying to resize at contact[at]nabillemsieh.com?

    Plugin Author Nabil Lemsieh

    (@nlemsieh)

    Hello,
    we released a new update that target this issue.

    Let me know if it does work for you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Horizontal images do not resize correctly’ is closed to new replies.