Skip to content

Tool for converting and resizing animations (GIF, MNG, APNG, WebM, ...)

License

Notifications You must be signed in to change notification settings

OronDF343/AniEnc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AniEnc

Cross-platform tool for converting and resizing animations, powered by Magick.NET and CliFx.

Implemented features

  • Conversion (to any format supported by ImageMagick)
  • Resizing (px / % / auto, various interpolation algorithms)
  • GIF optimization (all options available in Magick.NET)
  • Coalesce (by default when resizing)
  • Image enhancement

System requirements

  • Any platform supported by both .NET and Magick.NET
    • On x86/x64, Windows/Linux/macOS should all work
    • ARM is not fully supported
  • .NET 6.0 Runtime
  • (optional) FFmpeg installed to $PATH
    • This is required for some formats such as WebM, APNG
    • On Windows, I use media-autobuild_suite to build FFmpeg

How to use

Usage: dotnet anienc.dll <input> [<options>]

To convert a GIF to WebM: dotnet anienc.dll test.gif -f webm

To resize a GIF: dotnet anienc.dll test.gif -r 640 480 -f gif

To optimize a GIF: dotnet anienc.dll test.gif -p 2 -f gif

(for single-file builds, you may replace dotnet anienc.dll with anienc in the above examples)

Unique features

AniEnc has support for converting Ugoira. These are animations from Pixiv, downloaded with a tool such as PixivUtil2. Two files are required, .zip and .zip.js - specify one of them as the input and the tool will find the other one automatically.

Future plans

  • Better resizing options (fit)
  • Noise reduction algorithms
  • Extra support for JPEG XL animations (one of the initial goals of this project, as soon as ImageMagick has support)
  • Simple timing adjustments
  • Cutting
  • Cropping
  • Converting to/from individual frames

About

Tool for converting and resizing animations (GIF, MNG, APNG, WebM, ...)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages