Problem with Borders ..
Posted: 2011-04-12T03:04:41-07:00
This is on the command line interface on Linux .. (Ubuntu) and the version is the latest version ..
For this project I have to match a number of still images shot with the Canon 5d with MOV quicktimes also made by the same camera ..
The Mov files have a small border left and right of 7 Pixels and a border at the bottom of 8 pixels
So I made a batch file to ..
mogrify -resize 1906 *.jpg
then crop (to make the image 16x9)
mogrify -crop 1906x1072+0+99 *.jpg
then I put on a border ..
convert *.jpg -bordercolor black 7x8 -gravity center im.JPG
This works fine if there are a small number of jpg's in the folder but if there are 500 then I get an out of memory error ..
I'm obviously telling it to do all the jpegs at once .. how can I get it to do them sequentially ? Or is there a better way to increase the size of the canvas ?
For this project I have to match a number of still images shot with the Canon 5d with MOV quicktimes also made by the same camera ..
The Mov files have a small border left and right of 7 Pixels and a border at the bottom of 8 pixels
So I made a batch file to ..
mogrify -resize 1906 *.jpg
then crop (to make the image 16x9)
mogrify -crop 1906x1072+0+99 *.jpg
then I put on a border ..
convert *.jpg -bordercolor black 7x8 -gravity center im.JPG
This works fine if there are a small number of jpg's in the folder but if there are 500 then I get an out of memory error ..
I'm obviously telling it to do all the jpegs at once .. how can I get it to do them sequentially ? Or is there a better way to increase the size of the canvas ?