Gifcurry-2.0.0.2: Create animated GIFs, overlaid with optional text, from video files.

Safe HaskellSafe
LanguageHaskell2010

Gifcurry

Description

Produces GIFs using FFmpeg and ImageMagick. The main function is gif.

Synopsis

Documentation

gif :: GifParams -> IO (Either IOError String) Source #

Inputs GifParams and outputs either an IO IOError or IO String.

   import qualified Gifcurry (gif, GifParams(..), defaultGifParams, gifParamsValid)
   main :: IO ()
   main = do
     let params = Gifcurry.defaultGifParams { Gifcurry.inputFile = "./in.mov", Gifcurry.outputFile = "./out.gif" }
     valid <- Gifcurry.gifParamsValid params
     if valid
       then do
         result <- Gifcurry.gif params
         print result
       else return ()

gifParamsValid :: GifParams -> IO Bool Source #

Outputs True or False if a GifParams record parameters are valid. Looks at inputFile, outputFile, startTime, durationTime, widthSize, and qualityPercent.