fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Hello,

I’m facing an issue with images with proportions of 4×5.

All the images of my new products are 4×5 and not 1×1 proportions, the gallery image loads a 4×5 images, but the first 1 ou 2 thumbnails get cropped to 1×1 and some mantain the 4×5 proportion.

https://shop-magma.com/produto/manta-maxi-tricot-merino/

when you select a variation, the first 2 thumbnails will get cropped to 1×1

 

Another questions. Is there a way to enable pagiation instead of thumbnails?

Hakik Zaman

Hi Guilherme,

Thanks for reaching out to us. Are you talking about Main Image or Thumbnail Image?

Another questions. Is there a way to enable pagiation instead of thumbnails?

Unfortunately, this feature is not currently available. But it is a great idea.

Please send this feature request here- https://storepress.fider.io/

Thank You

Are you talking about Main Image or Thumbnail Image?

The thumbnails, the main image keeps it’s original 4×5 ratio (1080×1350). I have 4 thumbnails set to the bottom of the main image, all the images are 4×5 and should be displayed as 4×5 and not 1×1 (square).

if you check the link, you will notice that de first thumbnails gets cropped to 1×1 aspect ratio, the next 3 thumbnails don’t get cropped and are displayed as 4×5 aspect ratio, as it’s original ratio.

https://shop-magma.com/produto/peseira-maxi-tricot-la-merino/

https://ibb.co/Rb9H2WG  (image showing the issue)

Hakik Zaman

Hi Guilherme,

Can you please give us temporary admin access to your site? We’ll try to investigate the issue for you.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin, and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Hello, I removed the following .php code that was added to the fuctions.php

Some products have 1×1 images and the thumbnails are working fine.

Some products have 4×5 images, these produts are loading 1×1 images after I removed the .php code, before remove, just the thumbnail was getting cropper, now all the thumbnails are get cropped to 1×1

It’s better now, but I don’t want the thumbnails to get cropped, I want the thumbnails to load the same aspect ratio as when first uploaded, obviously, with lower resolution

add_filter( 'woocommerce_get_image_size_gallery_thumbnail', 'override_woocommerce_image_size_gallery_thumbnail' );
function override_woocommerce_image_size_gallery_thumbnail( $size ) {
// Gallery thumbnails: proportional, max width 200px
return array(
'width' => 60,//change width here
'height' => 60,//change height here
'crop' => 0,
);
}

 

I was able to solve it by adding this php fuction

add_filter( 'woocommerce_get_image_size_gallery_thumbnail', 'override_woocommerce_image_size_gallery_thumbnail' );
function override_woocommerce_image_size_gallery_thumbnail( $size ) {
// Gallery thumbnails: proportional, max width 200px
return array(
'width' => 300,//change width here
'height' => auto,//change height here
'crop' => 0,
);
}