Imagise.AnimationMaker 24.8.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package Imagise.AnimationMaker --version 24.8.2                
NuGet\Install-Package Imagise.AnimationMaker -Version 24.8.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Imagise.AnimationMaker" Version="24.8.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Imagise.AnimationMaker --version 24.8.2                
#r "nuget: Imagise.AnimationMaker, 24.8.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Imagise.AnimationMaker as a Cake Addin
#addin nuget:?package=Imagise.AnimationMaker&version=24.8.2

// Install Imagise.AnimationMaker as a Cake Tool
#tool nuget:?package=Imagise.AnimationMaker&version=24.8.2                

Imagise.AnumationMaker plugin for .NET

Imagise.AnimationMaker plugin .NET allows creation of animation from the input images aka frames. Anumation may be created in the gif, webp, apng formats

Platform Independence

Imagise.AnimationMaker plugin for .NET can be used to develop applications on Windows Desktop (x86, x64), Windows Server (x86, x64), Windows Azure, Windows Embedded (CE 6.0 R2), as well as Linux x64. The supported platforms include .Net Core 3.1, .Net6.0, .Net7.0, .Net8.0.

New Features & Enhancements in Version 24.8

Imagise.AnimationMaker is live.

Getting Started with Imagise.AnimationMaker plugin for .NET

Are you ready to give Imagise.AnimationMaker plugin for .NET a try? Simply add Imagise.AnimationMaker nuget package to your .NET application or execute

Install-Package Imagise.AnimationMaker

from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Imaging.Pdf.Adapter for .NET and want to upgrade the version, please execute

Update-Package Imagise.AnimationMaker

to get the latest version.

Following examples may give your ideas on further usage

Create apng animation from the input jpeg files in trial mode

using Imagise.AnimationMaker.ImageOptions;
using Imagise.AnimationMaker.Options;
using Imagise.Core;
using Imagise.Core.Creator.Source;
using Imagise.Core.Options;

string inputFolder = "<<your input folder>>";
string outputFolder = "<<your output folder>>";

if (!Directory.Exists(outputFolder))
{
	Directory.CreateDirectory(outputFolder);
}

const int FrameDuration = 70;
Core.Creator.ICompositeImage apngImage = null;

try
{
	foreach (var inputFilePath in Directory.GetFiles(inputFolder, "*.jpg"))
	{
		using (var sourceImage = Image.Load(inputFilePath))
		{
			if (apngImage == null)
			{
				ApngOptions createOptions = new ApngOptions
				{
					Source = new FileCreateSource(Path.Combine(outputFolder, "animation.png"), false),
					DefaultFrameTime = (uint)FrameDuration,
					ColorType = PngColorType.TruecolorWithAlpha,
				};

				apngImage = (Core.Creator.ICompositeImage)Core.Creator.Image.Create(
				createOptions,
				sourceImage.Width,
				sourceImage.Height);

				apngImage.RemoveAllFrames();
			}

			// add frame
			apngImage.AddFrame(sourceImage);
			}
		}
	}
	finally
	{
		if (apngImage != null)
		{
			apngImage.Save();
			apngImage.Dispose();
		}
	}

Create webp animated image using temporary license, which may be requested fro evaluation

using Imagise.AnimationMaker.ImageOptions;
using Imagise.AnimationMaker.Options;
using Imagise.Core;
using Imagise.Core.Creator.Source;
using Imagise.Core.Options;

string inputFolder = "<<your input folder>>";
string outputFolder = "<<your output folder>>";

Imagise.Core.Licensing.License.SetLicense("<<Path to your temporary license file>>");

string fileMask = "*.jpg";

if (!Directory.Exists(outputFolder))
{
	Directory.CreateDirectory(outputFolder);
}

const int AnimationDuration = 1000;
const int FrameDuration = 70;
Core.Creator.ICompositeImage? webpImage = null;

try
{
	foreach (var inputFilePath in Directory.GetFiles(templatesFolder, fileMask))
	{
		var sourceImage = Image.Load(inputFilePath);
		{
			if (webpImage == null)
			{
				WebPOptions createOptions = new WebPOptions
				{
					Source = new FileCreateSource(Path.Combine(outputFolder, "animation.webp"), false),
					FullFrame = true,
					AnimBackgroundColor = (uint)System.Drawing.Color.Transparent.ToArgb(),
					AnimLoopCount = (ushort)(AnimationDuration / FrameDuration)
				};

			webpImage = (Core.Creator.ICompositeImage)Core.Creator.Image.Create(
			createOptions,
			sourceImage.Width,
			sourceImage.Height);

			webpImage.RemoveAllFrames();
			}

			// add frame
			webpImage.AddFrame(sourceImage);
		}
	}
}
finally
{
	if (webpImage != null)
	{
		webpImage.Save();
		webpImage.Dispose();
	}
}

Create gif animated image in licensed mode

using Imagise.AnimationMaker.ImageOptions;
using Imagise.AnimationMaker.Options;
using Imagise.Core;
using Imagise.Core.Creator.Source;
using Imagise.Core.Options;

string inputFolder = "<<your input folder>>";
string outputFolder = "<<your output folder>>";

Imagise.Core.Licensing.License.SetLicense("<<Path to your license file>>");

string fileMask = "*.jpg";

if (!Directory.Exists(outputFolder))
{
	Directory.CreateDirectory(outputFolder);
}

const int AnimationDuration = 1000;
const int FrameDuration = 70;
Core.Creator.ICompositeImage? gifImage = null;

try
{
	foreach (var inputFilePath in Directory.GetFiles(templatesFolder, fileMask))
	{
		var sourceImage = Image.Load(inputFilePath);
		{
			if (gifImage == null)
			{
				GifOptions createOptions = new GifOptions
							{
					Source = new FileCreateSource(Path.Combine(outputFolder, "animation.gif"), false),
					BackgroundColor = System.Drawing.Color.Transparent,
					FullFrame = true,
					LoopsCount = (int)(AnimationDuration / FrameDuration),
					ColorPalette = Core.Palette.ColorPalette.GetCloseImagePalette(sourceImage, 256)
				};

				gifImage = (Core.Creator.ICompositeImage)Core.Creator.Image.Create(
					createOptions,
					sourceImage.Width,
					sourceImage.Height);

					createOptions.SetFrameDuration((Core.Image)gifImage, FrameDuration);
					gifImage.RemoveAllFrames();
			}

			// add frame
			gifImage.AddFrame(sourceImage);
		}
	}
}
finally
{
	if (gifImage != null)
	{
		gifImage.Save();
		gifImage.Dispose();
	}
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
24.9.1 9 9/6/2024
24.9.0 1 9/6/2024
24.8.5 8 8/8/2024
24.8.4 8 8/7/2024
24.8.3 6 8/6/2024
24.8.2 5 8/6/2024
24.8.1 5 8/5/2024