Converting bmp to gif in a line command

Posted on 2000-02-29
Last Modified: 2013-12-25
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?
Question by:dansorea
1 Comment
LVL 16

Accepted Solution

maneshr earned 200 total points
ID: 2573503
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

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question