Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Bonzo will have to help further as I know little about windows and IM under windows and windows bat file programming. I use Mac OSX with unix bash shell programming. Sorry.
Last edited by fmw42 on 2011-01-12T12:53:37-07:00, edited 1 time in total.
fmw42 wrote:Bonzo will have to help further as I know little about windows and IM under windows and windows bat file programming. I use Max OSX with unix bash shell programming. Sorry.
AH ha I had that error when I was not thinking - you pasted the convert comand into the command prompt box.
You need to save my code example as a bat file somewhere; I put it in the my user folder Anthony.
The images were in a folder called crop_test on my desktop and so the comand to run that is:
C:\Users\Anthony\crop.bat C:\Users\Anthony\Desktop\crop_test C:\Users\Anthony\Desktop\crop_test
First part is the path to the batch script: C:\Users\Anthony\crop.bat
The second is the path to the folder with the images to process: C:\Users\Anthony\Desktop\crop_test
The third is the path to save the images to: C:\Users\Anthony\Desktop\crop_test
Do not forget to cd\ back to the c prompt in the comand window before running the command.
For testing I just created a tempory folder and copied a couple of photos into it and saved the cropped images back to the same folder.
Bonzo wrote:AH ha I had that error when I was not thinking - you pasted the convert comand into the command prompt box.
You need to save my code example as a bat file somewhere; I put it in the my user folder Anthony.
The images were in a folder called crop_test on my desktop and so the comand to run that is:
C:\Users\Anthony\crop.bat C:\Users\Anthony\Desktop\crop_test C:\Users\Anthony\Desktop\crop_test
First part is the path to the batch script: C:\Users\Anthony\crop.bat
The second is the path to the folder with the images to process: C:\Users\Anthony\Desktop\crop_test
The third is the path to save the images to: C:\Users\Anthony\Desktop\crop_test
Do not forget to cd\ back to the c prompt in the comand window before running the command.
For testing I just created a tempory folder and copied a couple of photos into it and saved the cropped images back to the same folder.
Did you ever get it working? I have been working in DOS batch for a bit, the FOR command is quite particular in its processing particularly with environment variables %1, %2 in a batch file. Give a response back, and I will be checking.
FYI, I tried your command, and you don't seem to need the %d on the output file name. IM CONVERT adds the number automatically.