Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Produces GIFs using FFmpeg and ImageMagick.
The main function is gif
.
- gif :: GifParams -> IO (Either IOError String)
- data GifParams = GifParams {
- inputFile :: String
- outputFile :: String
- startTime :: Float
- durationTime :: Float
- widthSize :: Int
- qualityPercent :: Float
- fontChoice :: String
- topText :: String
- bottomText :: String
- defaultGifParams :: GifParams
- gifParamsValid :: GifParams -> IO Bool
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 ()
The data type record required by gif
.
GifParams | |
|
defaultGifParams :: GifParams Source #
Specifies default parameters for startTime
, durationTime
, widthSize
, qualityPercent
, and fontChoice
.
gifParamsValid :: GifParams -> IO Bool Source #
Outputs True or False if the parameters in the GifParams record are valid.
Looks at inputFile
, outputFile
, startTime
, durationTime
, widthSize
, and qualityPercent
.