R
R
Ruslan Magomedov2017-02-14 12:51:22
Images
Ruslan Magomedov, 2017-02-14 12:51:22

How to make woocommerce shrink thumbnails instead of cropping?

Good afternoon! Created an online store based on WooCommerce. The template adjusts the height of the thumbnail to the width specified in the settings. If you turn off hard cropping, it will look something like this:
80589f8fb2574d09b9d2f0d6acd477f7.PNG
This option is not suitable, since you need the same thumbnail sizes for all products. At the same time, if you enable hard cropping in the WooCommerce settings, you get the following: 7bb8362bff914208ae928ee39ef1e5ac.PNG
This option is also not suitable.
Is it possible to make the image shrink to the size of a square without cropping it and center it there?
PS - editing each photo is not an option, since there are a huge number of goods and there is no photographer of our own, we get photos from different sources.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WP Panda, 2017-02-14
@ca3ah138

You can connect https://github.com/bfintal/bfi_thumb and display c parameter crop=false through it , then the larger side will shrink to the specified size, and the smaller side will not crop, there will only be resize

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question