There isn’t a way to do this in WooCommerce core; I am leaving this thread open for a bit to see if anyone can chime in to help you out.
For additional assistance on this topic, we recommend getting in touch with one of the customization experts listed on the WooCommerce Customizations Page.
If you’re trying to get WordPress/wooCommerce to automatically put smaller images on a 600 x 600 white background, I don’t have a solution for you, but if you are willing to process the images on your PC before uploading them, you’ve got a couple of options.
First, Photoshop has a batch editing capability you could use. If you search for “photoshop batch edit” you’ll find a bunch of tutorials on how to set up a new action to affect all the images files in a folder.
I use Imagemagick from the command line to do batch photo processing. There’s a version of it for all the major operating systems. The command(s) you’ll use will vary a bit depending on the OS, but there are plenty of examples out there. Basically, you’ll be using the “convert” command if you want to create a new image file, and the “mogrify” command if you want to use the same file. For example, if you want to put all the JPEG images in the current folder on a 600 x 600 white background, you’d run the following command from the command line:
mogrify -gravity center -background white -extent 600x600 *.jpg
The commands provided by @linux4me2 look interesting, thanks for sharing that.
@jen000 I understand you would like to add white backgrounds to your images, you can also use this plugin called Remove products background for WooCommerce:
There are also more options from third-party plugins explained in this article.
Regarding the image size, you can learn more by checking this article: Changing Product Image Size.
I hope this provides clarity 🙂
Thank you everyone. Really helpful suggestions 🙂
I’m glad you found the information helpful! I’ll now mark this topic as solved.
Feel free to open a new one if you need further help.
I just want to add a reply for anyone else who has this problem. There are free plugins that will do the job! Here is one example: Smart Image Resize for WooCommerce
Automattic Happiness Engineer
Thank you for sharing your solution 👍.