
I had a chance to use the ‘imagemagick’ utility today, it has been some time. I downloaded an image and wanted to pad it on both the.sides in order to use it on my blog.
First, I needed to check its width in order to see if it has been changed, after the padding operation.
magick identify gravity-force-experiment-example_1308-105498.jpg.png
Then, I issued the command to pad the image on both the sides.
magick gravity-force-experiment-example_1308-105498.jpg.png -gravity center -background white -extent 1000 out.png
Finally, I checked the image width again.
magick identify out.png
0 Comments.