Algorithme de Compression de BMP en GIF

Algorithme de Compression de BMP en GIF - Programmation

Marsh Posté le 24-01-2001 à 13:45:52    

Connaitriez-vous un site qui propose cet algorithme en téléchargement?

Reply

Marsh Posté le 24-01-2001 à 13:45:52   

Reply

Marsh Posté le 24-01-2001 à 14:04:24    

Le Gif c'est payant comme algorythme et je crois que c'est très cher. En fait ce sont de grosses enflure, ils ont laissé le type de fichier se propager et un jour on doit payer !!!

 

Reply

Marsh Posté le 24-01-2001 à 14:26:36    

Il y a longtemps, j'avais utilisé l'algo de GIF (LZW) pour compressé des données. C'etait dans une encyclopedie sur la programmation des jeux (ça date de 1993). Dedans, il y a un fichier gif.txt où ils expliquent (en anglais) très simplement l'algo sur des exemples et donne l'algo (qui fait dans les 10 lignes)
Cherche pcgpe10.zip. Je l'ai retrouvé ici : ftp://ftp.cdrom.com/.1/garbo/garb [...] cgpe10.zip

 

Reply

Marsh Posté le 24-01-2001 à 16:06:25    

Le composant TGifImage de Anders Melander permet de creer des GIFs en utilisant une compression RLE (compatible LZW)... ca peut peut-etre t'aider a pondre un algo sans avoir a payer de licence a Unisys ;)
 
Extrait du fichier d'aide du composant :

Citation :


Description
Specifies the compression method used when saving the GIF.
The TGIFCompression values specifies which compression algorithm to use when saving GIF:

  • gcLZW: Normal LZW compression. This is the compression algorithm normally used by GIFs. It yeilds the best compression ratio, but also requires a LZW license from Unisys.
  • gcRLE: GIF compatible RLE compression. The GIF compatible RLE compression doesn't compress as good as LZW, but since the LZW algorithm is not used, no Unisys license is required. This only applies to the GIF writer. The GIF reader will always use LZW, so a LZW license is required if the application reads GIF files. GIF files saved with the RLE compression algorithm can be read by all GIF readers (such as web browsers).




 
Extrait de la licence :

Citation :


LZW license
 
GIF (and thus TGIFImage) uses an adaption of the LZW compression algorithm for image compression. The LZW algorithm is patented by UNISYS. Unfortunately UNISYS requires royalty payment for all software that uses the LZW algorithm.
 
To avoid the use of the LZW algorithm for writing GIFs, TGIFImage can write GIFs using a LZW compatible RLE compression method. See the TGIFImage.Compression property for more information. There are conflicting opinions on whether a LZW license is required to read GIFs. Some patent lawyers are of the opinion that the LZW patent does not cover LZW decoders, but others disagree. If this matters to you, you should contact your own lawyer.
For information regarding UNISYS' view on the use of LZW in commercial software, please read the License Information on GIF and Other LZW-based Technologies . The UNISYS patent on the LZW algorithm may or may not apply to you depending on the laws of your country. Personally I have less than warm feelings for Unisys and their patent and I don't care if you have a license or not.
 
The LZW patent expires in 2004.

 


 

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed