Source code GIF and/or PNG

morulis

Member
Mar 5, 2005
89
0
0
Hello,

Do you know where can I find source code to create my own encoder/decoder? I need to read from a known uncompressed file e.g BMP or PGM or PPM etc and to compress to GIF and/or PNG. I 've heard that the patent of LZW has expired and maybe there is code out there to make compressed GIF. The encoder/decoder will be used for academic purposes. I want to make a benchmark between known lossless compression techniques that used for images.

Thank you:)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
If you use someone else's code you're not really creating your own encoder, are you?

regardless, imagemagick is open source and can creat those files, as is the gimp, and GD.
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
What language are you looking to use? Imagemagick has commandline utilities to this too so your code only has to run the EXEs with the right command switches.
 

morulis

Member
Mar 5, 2005
89
0
0
The LZW or LZ77 does not belong to me intellectually. So the encoder/decoder does not belong to me either or to anyone else. All the other things are just "details of the implementation" as we the programmers say. Thank you for your answer:)