OK. I have a horizontal image, let’s say 2000 x 300. I want to overwrite that image and create a new one that is 2000 x 2000 with the old image center in the middle and vertically, with white space around it. I also want to do this in batch with many different images of different sizes. Thanks in advance.
Share
Use
-resizeto resize the image to 2000×2000,-backgroundto set the background to white,-gravityto center the original image on the canvas, and-extentto resize the canvas itself (to cause the image to sit in the centre if it wasn’t square originally).