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