Skip to content

CodeSailer/GIF-Studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GIF-Studio

A simple program to make a gif from set of images Blog post: https://codesailer.com/projects/imagestogif/

Software used

To use this program you need to have ffmpeg(put "ffmpeg.exe" inside the directory of the executible).
you can download it here: https://ffmpeg.org/download.html#build-windows

How to use

https://www.youtube.com/watch?v=s5LITo6rlLM

Batch files code

ToGIF.bat

type settings.txt
set /p dur=<settings.txt
ffmpeg -y -r %dur% -i images\%%d.jpg -c:v libx264 -pix_fmt yuv420p slide.mp4
ffmpeg -y -i slide.mp4 -filter_complex "fps=%dur%,scale=400:-1:" animated.gif
pause

ToGIFHQ.bat

type settings.txt
set /p dur=<settings.txt
ffmpeg -y -r %dur% -i images\%%d.jpg -c:v libx264 -pix_fmt yuv420p slide.mp4
ffmpeg -y -i slide.mp4 -vf fps=%dur%,scale=320:-1:flags=lanczos,palettegen palette.png
ffmpeg -y -i slide.mp4 -i palette.png -filter_complex "fps=%dur%,scale=400:-1:flags=lanczos[x];[x][1:v]paletteuse" animated.gif
pause

The difference between the two is that the second one create a palette that is used to increase the quality of the gif but it will also increase its size.

About

A simple program to create gif rom images

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages