Archie
Archie

Reputation: 45

Padding in ImageMagick

I am doing a comparison with imagemagick on a project. I have a reference image and test image. I deleted few lines to make changes in test image. This reduced the size of test image. Is there any way that if I could add some white padding at bottom to test image so that while comparing reference image and test image the size of two images remains same.

Please help!

Upvotes: 4

Views: 2539

Answers (1)

anfab
anfab

Reputation: 1636

convert -border 5x5 inputimage.png outputimage.png

This command will draw a 5x5 pixel border around your image. Further, you can selectively control at the edges, color and size of the borders drawn on an image. This link will show how to do that.

Upvotes: 11

Related Questions