Page 1 of 1

Make a droplet to convert color to grey as a BAT file

Posted: Thu Apr 01, 2004 7:19 pm
by jimbob
I successfully use the command line within a Windows DOS prompt to convert a color JPG to a greyscale JPG:

nconvert -quiet -o output.jpg -grey 256 -out jpeg input.jpg

Can anyone assist with how I would make a BAT file to do this? I hope to be able to drag the icon of a color JPG (located anywhere on the computer) onto the BAT icon to convert it into a greyscale JPG. The output would have a new filename like 'converted-oldfilename.jpg' and it would be saved in the same location as the source image.

Is this possible with a BAT file?

Re: Make a droplet to convert color to grey as a BAT file

Posted: Mon Apr 05, 2004 11:49 am
by xnview
jimbob wrote:I successfully use the command line within a Windows DOS prompt to convert a color JPG to a greyscale JPG:

nconvert -quiet -o output.jpg -grey 256 -out jpeg input.jpg
Can anyone assist with how I would make a BAT file to do this? I hope to be able to drag the icon of a color JPG (located anywhere on the computer) onto the BAT icon to convert it into a greyscale JPG. The output would have a new filename like 'converted-oldfilename.jpg' and it would be saved in the same location as the source image.
Is this possible with a BAT file?
Perhaps by using %1 for parameters.
Pierre.