Creating a Gif from Multiple Images with Imagemagick Convert Utility.
Assuming, for a proof-of-concept (PoC), that you have extracted 190, 1920x1080 pixels, images to a hypothetical directory. Further, assume that you want to create a gif to share on a social network. Well, you can play with the parameters below to achieve a 20MB gif that is decent to view, as seen in the teaser image above.
In Debian, you need to install ImageMagick
Shell
apt-get install imagemagick | |
convert -layers OptimizePlus -delay 5x100 directory/*.png -loop 0 +dither -colors 256 -depth 8 -quality "5%" -resize "30%" data/{}.gif |
To further make the gif image leaner, you may want to apply a fuzz factor:
Shell
convert data/big.gif -fuzz 7.8% -layers Optimize leaner.gif |
Of course, fuzz will decrease the quality of the gif; accordingly use judiciously.
References:
Shodan Python Gif Creator.
Sample images to create Gif were extracted from Ruptly TV's media Germany: See female body-builders flex for FIBO bikini contest, for illustrative purposes only and with no intention of infringement.