Converting bmp to gif in a line command

I need to reactualize an image on a Web page, depending on some numerical values, and I have a program that is able to generate bmp file. How can I convert these files into gif automatically?
Who is Participating?
maneshrConnect With a Mentor Commented:
if you are on Windows platform, this is what you need..

i donwloaded, installed & test the same & it works quite fine.
Since its a demo version, the output .gif file has the company's watermark.
Therefore you have to purchase a registered version to get your output without the watermark.

2GIF.EXE is a command-line utility which allows you to convert images from 15 popular formats into GIF.

You can convert to GIF format from BMP, DCX, DXF, EPS, FPX, GIF, IMG, JPG, PCD, PCX, PNG, Targa, TIFF, WPG, and WMF.

In addition, the program supports zooming and interlacing, and lets you perform conversions in batch mode.

You can get a demo version at ...

Command line syntax:
2gif.exe s=<SP> d=<DP> -w<W> -h<H> -prop -rot<ANGLE> -CD<CD> -sep -ov -sf -i -g

<SP>      - Source file(s) path. Can be mask:
            <folder path>\*.* - convert all graphics files from folder
            <folder path>\*.bmp - convert all Bitmap files from folder
            <folder path>\MyImage.* - convert all files with name "MyImage" from folder
            <folder path>\MyImage.bmp - convert only "MyImage.bmp" from folder
<DP>      - Destination folder path.

<CD>      - Destination file(s) color depth(8 by default);
            Must be set as 8 or 4.

<W>         - Destination image width (width of the source image by default).
<H>         - Destination image height (height of the source image by default).
-prop      - Scaling will be proportionally if this key set.

-sep      - Separate multipage images (GIF, TIFF, DCX) if this key set.

-ov      - Overwrite existing destination files if this key set.

-sf      - Scan subfolders if this key set. Converted files will be placed into destination
            folder with source folders structure saving.

-i      - Interlaced GIF file if this key set.
-g      - Save image in grayscale palette if this key set.

<ANGLE>      - Destination image rotation angle (0 by default)
            Must be set within the range of -360..0..360. The angle step is 1.
Command line examples:

2gif.exe s="C:\MyDocuments\*.*" d="C:\GIF_Files"
2gif.exe s="C:\MyDocuments\*.*" d="C:\GIF_Files" -w300 -h500
2gif.exe s="C:\MyDocuments\*.*" d="C:\GIF_Files" -w300 -h500 -prop
2gif.exe s="C:\MyDocuments\*.*" d="C:\GIF_Files" -w300 -prop
2gif.exe s="C:\MyDocuments\*.png" d="C:\GIF_Files" -cd8
2gif.exe s="C:\MyDocuments\name.*" d="C:\GIF_Files" -w300 -h500 -prop -rot30 -cd4 -sf -ov -sep
2gif.exe s="C:\MyDocuments\name.*" d="C:\GIF_Files" -rot30
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.