Multiple operations... I'm lost!
Posted: 2015-12-25T13:01:40-07:00
Hi again!
I'm slaving on what would be a simple piece of code but for some reason I'm completely lost in my Windows command prompt!
I'm trying to make a small script that will take a square picture, resize it to 11x11 inch at 300DPI (which is 3300 pixels), invert the colors (negative) and crop it back to 8½x11 inch (2500x3300 pixels) and save it as an MPC.
Then take the original image, add a 10 pixel border around it on the outside and save it as an MPC also.
Once I have those two sets of images, I just want to composite the two image using center gravity and save the whole thing as a PNG...
So far, this is what I cobbled up and its failing miserably!
Anybody know what the heck I'm doing wrong?
I'm slaving on what would be a simple piece of code but for some reason I'm completely lost in my Windows command prompt!
I'm trying to make a small script that will take a square picture, resize it to 11x11 inch at 300DPI (which is 3300 pixels), invert the colors (negative) and crop it back to 8½x11 inch (2500x3300 pixels) and save it as an MPC.
Then take the original image, add a 10 pixel border around it on the outside and save it as an MPC also.
Once I have those two sets of images, I just want to composite the two image using center gravity and save the whole thing as a PNG...
So far, this is what I cobbled up and its failing miserably!
Code: Select all
convert -resize 3300x3300 -filter cubic -negate -crop 2500x3300 -blur 10 *.jpg *.mpc
convert *.jpg -border 10x10 -bordercolor "#000000" *Border.mpc
composite -gravity center *.mpc *Border.mpc *.png