Skip to content

Lomet/GifDelayEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Mar 14, 2023
1159be6 · Mar 14, 2023

History

68 Commits
Mar 14, 2023
Mar 14, 2023
Mar 14, 2023
Mar 14, 2023
Mar 14, 2023
Mar 14, 2023

Repository files navigation

CodeFactor Build and Test codecov

SineWaveGIF

SineWaveGIF is a command-line tool that creates a sine wave animation from an input GIF file.

Why

If you have a cut-out gif and you want it to run in a loop without jumps, you can use the GifsinMaker tool to modify the delays between frames. By adjusting the delays, you can create a smoother loop that doesn't have any noticeable jumps or pauses.

Installation

SineWaveGIF is a .NET Core console application and requires .NET Core 3.1 or later to run. You can download the latest version of .NET Core from the official website: https://dotnet.microsoft.com/download

To build SineWaveGIF from source code, you need to have Visual Studio 2019 or later installed.

Usage

The SineWaveGIF command-line tool has the following syntax:

SineWaveGIF.exe <input-file> <output-file> <max-delay-ratio> <speed-up-ratio>

Where:

<input-file> is the path to the input GIF file
<output-file> is the path to the output GIF file
<max-delay-ratio> is a double value that controls the maximum delay factor of the sine wave animation.
<speed-up-ratio> is a double value that controls the speed-up factor of the sine wave animation.

Example

To create a sine wave animation from input.gif with a maximum delay ratio of 2 and a speed-up ratio of 1.5, and save the result to output.gif, run the following command:

input.gif

input

SineWaveGIF.exe input.gif output.gif 2 1.5
output.gif

output

Contributing

If you would like to contribute to GifDelayEditor, please fork the project and submit a pull request. We welcome contributions of all kinds, including bug fixes, feature requests, and documentation improvements.

License

SineWaveGIF is licensed under the MIT License. See the LICENSE file for more information.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages