Adding border to images.

2010-07-18 1 min read Photo
A very simple script to add border to images : ** ** *for i in .jpg; do montage -geometry 720×576 -background black -quality 100 $i conv-$i; done This is one line that you can run the directory containing all your images and all the files with extension of ”jpg” will be assumed to be images and the command run on them to add the border. The border is black in color and quality of the border is 100%. Continue reading

Add border to images from command line using montage.

2008-11-20 1 min read Linux Photo
Adding a border to the images from command line is quite simple. But if you have couple of images in a directory that you want to add border to then it may become quite painful 🙂 So what is the solution. You can simply use a one liner to do the job for you. for i in *.jpg; do montage -geometry 720×576 -background black -quality 100 $i conv-$i; done