Convert not working in a windows batch file
Posted: 2010-10-11T09:20:10-07:00
Hi, I've got a strange problem and I was wondering if it was a known one, possibly with a solution. I'm using a batch file in windows to do a number of transformations on a couple of images, some of them work but some don't, but they still create the destination file. The odd thing is if I run a line (copied and pasted from the batch file) from the command prompt direct it performs the translation ok. An example is
imconvert -density 450x450 b_trn.gif -black-threshold 100% b_trn_black.png
- I have renamed convert.exe to imconvert.exe to overcome the windows path problem - on this command in the batch file it doesn't convert all the colours (it's a greyscale line graph with a transparent) to black, it only creates the target file. Any ideas?
Thanks
MH
imconvert -density 450x450 b_trn.gif -black-threshold 100% b_trn_black.png
- I have renamed convert.exe to imconvert.exe to overcome the windows path problem - on this command in the batch file it doesn't convert all the colours (it's a greyscale line graph with a transparent) to black, it only creates the target file. Any ideas?
Thanks
MH