Read binary GIF files as ByteStrings

This commit is contained in:
Manuel Gomez 2015-06-20 00:15:45 -04:30
parent e7a27b42e9
commit df38a542f9

View File

@ -48,8 +48,8 @@ animationData renderable = do
mainRender (diagOpts, gifOpts) frameSet
-- Convert to ascii represented base64 encoding
imgData <- readFile filename
return . T.unpack . base64 . CBS.pack $ imgData
imgData <- CBS.readFile filename
return . T.unpack . base64 $ imgData
-- Rendering hint.
animation :: Animation Cairo V2 Double -> Animation Cairo V2 Double