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

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Post Reply
jimbob

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

Post by jimbob » Thu Apr 01, 2004 7:19 pm

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?

User avatar
xnview
Author of XnView
Posts: 31891
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview » Mon Apr 05, 2004 11:49 am

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.

Post Reply