Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Size :: * = Size {}
- data FileFormat :: *
- sinkImageInfo :: (Monad m, MonadThrow n) => Consumer ByteString m (n (Size, FileFormat))
Documentation
data FileFormat :: *
sinkImageInfo :: (Monad m, MonadThrow n) => Consumer ByteString m (n (Size, FileFormat))
Find out the size of an image. Also returns the file format that parsed correctly. Note that this function does not verify that the file is indeed in the format that it returns, since it looks only at a small part of the header.