The original image (here 400 x 150 px) Resize to max 200 x 200.
The original image will then be resized to 200x75 with the scripts I found so far.

But, I want it to be exactly 200x200, so the empty spaces are filled with white and the image centered.

So, all final images are exactly 200x200.