Go Premium for a chance to win a PS4. Enter to Win


Converting bmp to gif in a line command

Posted on 2000-02-29
Medium Priority
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 800 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

927 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