thumbnail-plus-1.0.5: Generate thumbnails easily and safely.

Safe HaskellNone
LanguageHaskell2010

Graphics.ThumbnailPlus.ImageSize

Synopsis

Documentation

data Size :: * #

Constructors

Size 

Fields

Instances

Eq Size 

Methods

(==) :: Size -> Size -> Bool #

(/=) :: Size -> Size -> Bool #

Ord Size 

Methods

compare :: Size -> Size -> Ordering #

(<) :: Size -> Size -> Bool #

(<=) :: Size -> Size -> Bool #

(>) :: Size -> Size -> Bool #

(>=) :: Size -> Size -> Bool #

max :: Size -> Size -> Size #

min :: Size -> Size -> Size #

Read Size 
Show Size 

Methods

showsPrec :: Int -> Size -> ShowS #

show :: Size -> String #

showList :: [Size] -> ShowS #

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.