There are many pictures in the folder. They are not square. The task is to make them square according to the following principle:
If one side is larger than the other, then on the short side add white fields on the sides, so that the sides become equal.
Googling gave me only the ability to trim the photo under the square, but this is not what I want.
Thank!
- An example of your code in the studio. - Vladimir Klykov
- Bad you google: imagemagick.org/Usage/thumbnails/#pad - Yuriy Prokopets
|