Convert-to-GIF is a powerful command-line tool powered by FFmpeg to seamlessly transform video files into high-quality GIF animations with precise control over duration, output size, and scaling algorithm. Simplify the process of creating captivating visual content for your projects.
To install the application, please ensure that you have ffmpeg
installed on your system. If ffmpeg
is not already installed, you can follow the instructions specific to your operating system to install it.
Once ffmpeg is installed, you can proceed with the following steps:
- Clone the repository by running the command:
git clone https://github.com/vishnuMohanan01/convert-to-gif.git
- Change your current directory to the cloned repository by running:
cd convert-to-gif
- Set the right file permissions for the setup script and run the script.
chmod +x setup.sh
# Run the script
./setup.sh
convert-to-gif -i ~/Desktop/input.mov -o output.gif
# Use -h flag to show help message
convert-to-gif -h
# Using Optional flags:
# Use -t flag for set the duration of output gif in seconds, default value is 20s
convert-to-gif -i ~/Desktop/input.mov -o output.gif -t 4
# Use -w flag to set the width of output gif, default value is 1280
convert-to-gif -i ~/Desktop/input.mov -o output.gif -w 640
# Use -f flag to set the scaling algorithm to be used, default is bicubic
# visit: http://trac.ffmpeg.org/wiki/Scaling#Specifyingscalingalgorithm for a list of such algorithms
convert-to-gif -i ~/Desktop/input.mov -o output.gif -f lanczos