Board index » delphi » GIF/JPG/BMP conversion routines

GIF/JPG/BMP conversion routines

Does anyone have, or know where to find conversion routines to go
between GIF and BMP (JPG would be nice, but not necessary).  Preferably
.PAS files or VCL objects, but .DLL's okay.

MUST WORK WITH DELPHI 1 AND 3.

Thanks in advance!

Greg
--
GREG POSTLEWAIT CONSULTING
http://www.teleport.com/~gpost/

OREGON DELPHI USER'S GROUP
http://www.teleport.com/~gpost/delphi/

OREGON COMPUTER CONSULTANTS ASSOCIATION
http://www.occa.org/

 

Re:GIF/JPG/BMP conversion routines


Quote
Greg Postlewait wrote:

> Does anyone have, or know where to find conversion routines to go
> between GIF and BMP (JPG would be nice, but not necessary).  Preferably
> .PAS files or VCL objects, but .DLL's okay.

I think my TGifImage stuff will do. It can convert BMP>GIF and GIF>BMP.
I made it freeware with source code. You can download it from
the Delphi Super Page via (http://sunsite.icm.edu.pl/delphi/index.html),
Torry's Delphi Pages
(http://carbohyd.siobc.ras.ru/torry/VCL/GRAPHICS/GIFIMAGE.ZIP)
or from my home page site (see signature).
The name of the file is GifImage.zip.
There is one other TGifImage, that's without source, and
there's also a TJPEGIMage. But you don't need that if you have Delphi 3
(?)

Quote
> MUST WORK WITH DELPHI 1 AND 3.

Haven't got Delphi 3 yet so I'm not 100% sure it works there,
but I am quite sure people have used it under Delphi 3 and
gotten it to work (*if* it didn't work immediately).

--
Reinier Sterkenburg.
========================================================================
Email (home)        : mailto:r.p.sterkenb...@dataweb.nl
Home page           : http://www.dataweb.nl/~r.p.sterkenburg
The Delphi Bug Lists: http://www.dataweb.nl/~r.p.sterkenburg/bugsall.htm
========================================================================

Re:GIF/JPG/BMP conversion routines


: Does anyone have, or know where to find conversion routines to go
: between GIF and BMP (JPG would be nice, but not necessary).  Preferably
: .PAS files or VCL objects, but .DLL's okay.

: MUST WORK WITH DELPHI 1 AND 3.

Have you looked at NViewLib?
http://einstein.ae.eng.ua.edu/nishita/index.htm
Not sure if it does conversions between files, but will display them.

- Galen -

Re:GIF/JPG/BMP conversion routines


Quote
Reinier Sterkenburg <r.p.sterkenb...@dataweb.nl> wrote:
>> Does anyone have, or know where to find conversion routines to go
>> between GIF and BMP (JPG would be nice, but not necessary).  Preferably
>> .PAS files or VCL objects, but .DLL's okay.
>I think my TGifImage stuff will do. It can convert BMP>GIF and GIF>BMP.
>> MUST WORK WITH DELPHI 1 AND 3.
>Haven't got Delphi 3 yet so I'm not 100% sure it works there,
>but I am quite sure people have used it under Delphi 3 and
>gotten it to work (*if* it didn't work immediately).

I have modified it (TGifImage) extensively for use in Delphi 3 with
ISAPI modules; My version use TStreams for I/O, descends from TGraphic
and registers the GIF format with TPicture.

For simple/small GIF images I have found it quite usefull, but for
complex/large images, the compression routines are simply too slow and
"object oriented" to be used for CGI. A typical non-animated 256 color
bitmap takes from 10 to 30 seconds to compress on a Pentium, 166MHz.

I am currently looking into converting parts of the NetPBM library for
use with Delphi. That would give me support for formats like GIF,
PICT, PCX, TIFF, PostScript and many others. I would like to hear from
anybody that might be interested in participating in this project.

Share and Enjoy!

+--------------------from usenet----------------------+
|  Anders Bo Melander    | Phone: (+45) 31 87 91 26   |
|  Finsensvej 79, 2. tv. | mailto:a...@biocat.ruc.dk  |
|  DK-2000 Frederiksberg | work: a...@lrsoftware.dk    |
|  Denmark               | flameto:bi...@microsoft.com|
+------------------------+----------------------------+
| http://ftp.frontier.dk/public/Delphi2/tbedit01.html |
+-----------------------------------------------------+

Re:GIF/JPG/BMP conversion routines


Quote
Anders Melander wrote:

<clip>
Quote
> >> Does anyone have, or know where to find conversion routines to go
> >> between GIF and BMP (JPG would be nice, but not necessary).  Preferably
> >> .PAS files or VCL objects, but .DLL's okay.
<clip>
> For simple/small GIF images I have found it quite usefull, but for
> complex/large images, the compression routines are simply too slow and
> "object oriented" to be used for CGI. A typical non-animated 256 color
> bitmap takes from 10 to 30 seconds to compress on a Pentium, 166MHz.

<clip>
http://www.imagelib.com has a dll for doing a most formats.  It is
shareware though, but it is relatively fast and can read and write most,
if not all, formats you requested.  It will also do streams as well as
files, which is probably what you are interested in.  Not that I am not
affiliated with SkyLine Tools, just suggesting it.

Brendan

Other Threads