/PoshGif

A powershell module for generating gifs from a directory of images

Primary LanguagePowerShellMIT LicenseMIT

PoshGif

I use gifski for this now. I am keeping this repo archived becase it is a useful showcase of setting byte sequence and I may not want to find and bug Lee about it in the future [grin]

A powershell module for generating gifs from a directory of images

I wrote this to help out my son make a short stop motion video. There are some dependencies on Write-Log from FC_Log right now. The script will run without it, but you will not get any log information.

To Use

Take a bunch of images (.jpg right now) and put them in a folder. We named them 001,002... then run Invoke-Giffer -Path C:\Path\To\Photos. IT will produce a looping gif in the same directory as the source images.

I do not know how to add a pause directly into the gif encoder, so we just duplicate the frames we add (ie each image is actually 7 frames of the end gif) and duplicate the image files themselves where we want to change the pacing of individual frames in the animation.

This uses some code from Reddit to inject the proper bytes into the gif to allow it to loop at the end