Animated GIF Encoder for .NET Update

by Phil 20. February 2008 05:24

coolani

This is an updated to the "NGif, animated GIF Encoder for .NET" article on the The Code Project web site. NGif is a set of C# classes which can create animated GIF images. Microsoft's native GDI library does not support the creation of animated GIFs.

My update supports returning the animated GIF as a MemoryStream object instead of a file. This is helpful on webservers where saving temporary files are not allowed.

Download: NGif_src2.zip (361.62 kb)

Update: If you are looking for more information on animated GIFs using C#, check out HOWTO: create an animated GIF using .Net (C#) by Rick van den Bosch.

Tags: ,

Code

Comments

2/20/2008 6:29:37 AM #

Mark

Thanks for posting the update, Phil!  This should have been part of nGif from the beginning!

Mark

2/29/2008 2:29:04 AM #

Georgi Georgiev

Hi,
Nice and very helpful. Still - by touching the code here and there (all SetPixel and GetPixel methods, actually), I managed to significantly improve the speed of both the encoder and the decoder. If you're interested to include the changes in your version, contact me on lllopo(_at_)abv.bg

Grts., Joro

Georgi Georgiev Bulgaria

4/7/2008 11:24:19 PM #

R v B

Hi,
Nice and very helpful. Still - by touching the code here and there (all SetPixel and GetPixel methods, actually), I managed to significantly improve the speed of both the encoder and the decoder. If you're interested to include the changes in your version, contact me on lllopo(_at_)abv.bg

Grts., Joro


i think that there are many ppl intersted in your improvments to NGif

grtz, RvB

R v B Netherlands

4/7/2008 11:31:26 PM #

R v B

Hi,
Nice and very helpful. Still - by touching the code here and there (all SetPixel and GetPixel methods, actually), I managed to significantly improve the speed of both the encoder and the decoder. If you're interested to include the changes in your version, contact me on lllopo(_at_)abv.bg

Grts., Joro


Hi,

I think that there are many ppl interested in the improvements you made to NGif, myself include

grtz
RvB

R v B Netherlands

5/19/2008 5:58:43 PM #

empkey

I did that in simpler way. The still problem is encoding error; just look at the unnormal pixel added at the end of each image in the ani gif file.

empkey United States

5/19/2008 6:59:06 PM #

empkey

I have solved the problem.

empkey United States

9/3/2009 5:40:54 AM #

Simon Bridewell

Hi there Phil.

A few months ago I was searching for a library for encoding animated GIF files and found this.

Since then I've added support for using a global colour table and also refactored it quite a bit, moving most of the discrete building blocks of a GIF file into their own classes and exposing all their attributes as public properties.

I've written two applications which use this library. One just loads a GIF file and dissects it into its components, displaying all their attributes - I used this extensively to debug the changes I made to the encoder class. The other generates images of fractals and animates them.

I'd like to release these applications to the world under the GNU GPL and publish them on a site such as SourceForge, but first I need to check whether you have any objections to me releasing a work derived from your code in this way.

I'd also like to check whether I've credited you properly, both in the application UIs and in the source code, and likewise whether I've properly credited the various other developers whose code has been included and/or ported into your original nGif library.

What do you think would be the best way to go about this? I guess the easiest way would be to publish the code and send you the URL, but I'm a bit reluctant to go publishing it without first seeking your approval, a bit of a chicken-and-egg situation.

Please drop me a line and let me know (I gather this form should give you my e-mail address).

Cheers, Simon.

Simon Bridewell United Kingdom

9/3/2009 5:59:01 AM #

Phil

Simon:

The original NGif package is released under the The Code Project Open License (CPOL) 1.02 (http://www.codeproject.com/info/cpol10.aspx).

You need to contact "gOODiDEA.NET" and ask him if he is willing to relicense it. You can contact him via his profile page on CodeProject (http://www.codeproject.com/Members/gOODiDEA-NET).

My modifications only are released to the public domain. Attribution back to this site would be nice, but that is not required.

Phil

Phil United States

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant

Projects

Software Stack

Recent Comments

Comment RSS

Badges

Enhanced with Snapshots