Skip to content

thoo0224/Gifski.Net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gifski.Net

Gifski wrapper for .NET 8 | Up to date with v1.14.4

GitHub release Nuget Nuget DLs GitHub issues GitHub License

Example Usage

using GifskiNet;

using var gifski = Gifski.Create(@"C:\Test\gifski.dll", settings =>
{
    settings.Quality = 100;
});

// Sets the output file of the gif
gifski.SetFileOutput(@"C:\Test\animation.gif");
// Or you can write it directly to a stream
var stream = new MemoryStream();
gifski.SetStreamOutput(stream);

gifski.AddFramePngFile(frameNumber: 0, presentationTimestamp: 0.0, filePath: @"C:\Test\frame_1.png");
gifski.AddFramePngFile(1, 4.0, @"C:\Test\frame_2.png");
gifski.AddFramePngFile(3, 6.0, @"C:\Test\frame_3.png");
gifski.Finish();

NuGet

Install-Package Gifski.Net

Contribute

I am open for any contribution.