Windows batch files?
Posted: 2009-02-22T10:23:05-07:00
Hello all,
Fmw42 was kind enough to provide some commands that I was looking for, however I'm trying to get these to work on a Windows machine using batch files. As of right now, the Unix style formatting of the commands isn't working fully, and I have a feeling it's a single quote ( ' ) vs double quote ( " ) issue.
Here's the original link: viewtopic.php?f=1&t=13180&start=0
Here's what I'm working with so far:
I changed Fmw42's Unix style variable to a DOS style variable in the first line, and then I'm attempting to call that variable in the second line with the "%color%". However, the double quotes in the second line ends up spewing out two copies of the test.jpg file - both with black space where the splice happened.
Any help would be greatly appreciated!
Fmw42 was kind enough to provide some commands that I was looking for, however I'm trying to get these to work on a Windows machine using batch files. As of right now, the Unix style formatting of the commands isn't working fully, and I have a feeling it's a single quote ( ' ) vs double quote ( " ) issue.
Here's the original link: viewtopic.php?f=1&t=13180&start=0
Here's what I'm working with so far:
Code: Select all
set color="convert test.jpg -format '%%[pixel:s.p{0,0}]' info:"
convert test.jpg -background "%color%" -gravity center -splice 0x60 -gravity south -chop 0x60 test2.jpg
Any help would be greatly appreciated!