How to disable original image crop in woocommerce?
Because I have a problem with cropping WooCommerce process:
Original Image
Cropped Image:
How can I fix this problem, to have like in original image, no cropping for resized thumbnails by WooCommerce?
Go to woocommerce > settings > products (tab) > Display (sub-tab)
Then at the bottom of the page, in "Product Images, disable Hard Crop options and save changes:
Then you will need to regenerate your products images with Regenerate Thumbnails plugin:
WITH PHP ALTERNATIVE:
Sometimes in some themes, this is settings are hard coded. So you can change them with this code snippet, pasting it in the function.php file of your active child theme or theme:
You can comment/uncomment the code (or remove some portions) to feet your needs. This code will overwrite define options in WooCommerce settings > Products > Display (Product Images).
You also might need to regenerate product images with Regenerate Thumbnails plugin...
Since WooCommerce menu changed with last versions, this "Display" menu doesn't exist anymore.
Now you can find it in:
-> Customize (situated in the top bar of Wordpress when you are on front)
-> WooCommerce
-> Product images
-> Select "Uncropped" option, Then hit "Publish" to save.
Don't forget to Regenerate thumbnails like mentionned in the previous post with this plugin : https://wordpress.org/plugins/regenerate-thumbnails/