Solved

Converting bmp to gif in a line command

Posted on 2000-02-29
1
332 Views
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?
0
Comment
Question by:dansorea
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
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 ...
http://softseek.zdnet.com/Graphics_and_Drawing/Graphics_Conversion_and_Optimization/Review_28610_index.html

=====================================================
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
----------------------------------------------------------------------------
0

Featured Post

Learn how to optimize MySQL for your business need

With the increasing importance of apps & networks in both business & personal interconnections, perfor. has become one of the key metrics of successful communication. This ebook is a hands-on business-case-driven guide to understanding MySQL query parameter tuning & database perf

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

626 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