Is it possible to write a script that can create a copy of all the pictures in a file and add a white border to it with the border multiplied by a certain percentage?
I want the width of the new image (old image + border) to be about 134% of the old one and height about 165% of the old one.
I imagine this is fairly simple but not positive how and all my attempts so far have been unsuccessful.
My current code so far is:
'''for i in ls; do name = "mat_$i" echo "processing $name..." ; convert $i -bordercolor white -border 1x2 $name; done''''
The 1x2 is off for sure, but nothing I have tried there worked either.
I would also like to add meta data as some of these pics are professional and maybe distributed online. Thanks in advance.
Here is one way for Imagemagick 6.
Input:
Result:
For Imagemagick 7, you can do that inline as follows: