| View previous topic :: View next topic |
| Author |
Message |
Branden Johnson Guest
|
Posted: Mon Mar 07, 2005 5:46 pm Post subject: Gif -> JPG Conversion |
|
|
How could I convert a GIF image file to a JPG image file. I thought that
the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?
Thanks All,
Branden Johnson
|
|
| Back to top |
|
 |
Mat Ballard Guest
|
Posted: Mon Mar 07, 2005 10:21 pm Post subject: Re: Gif -> JPG Conversion |
|
|
Branden Johnson wrote:
| Quote: | How could I convert a GIF image file to a JPG image file. I thought that
|
generally one does:
JPG := TJpegImage.Create;
JPG.Assign(GIF);
for TGraphic descendants.
if that does not work, try going through a bitmap.
| Quote: | the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?
|
ask the vendor,
cheers,
Mat
|
|
| Back to top |
|
 |
Charles Hacker Guest
|
Posted: Thu Mar 10, 2005 5:21 am Post subject: Re: Gif -> JPG Conversion |
|
|
Branden Johnson wrote:
| Quote: |
How could I convert a GIF image file to a JPG image file. I thought that
the mcmDesigns TmcmImage component would do it if I just loaded it in an
changed the extension when I saved the image. It does change the extension
but the image is still a GIF. Does anyone know how to use mcmDesign
components or some other method of converting a GIF to JPG?
|
Something like the following:
GifImage:=TGifImage.Create;
JPegImage:=TJPegImage.Create;
GifImage.LoadFromFile('c:test.gif');
JPegImage.Assign(GifImage);
JPegImage.CompressionQuality:=100;
JPegImage.Compress;
JPegImage.SaveToFile('c:test.jpg');
JPegImage.Free;
GifImage.Free;
--
Charles Hacker
Lecturer in Electronics and Computing
School of Engineering
Griffith University - Gold Coast
Australia
|
|
| Back to top |
|
 |
|