thumbnail-0.8.0: generate thumbnail image

Safe HaskellNone
LanguageHaskell98

Graphics.Thumbnail

Synopsis

Documentation

data ImageFormat Source

Constructors

Gif 
Jpeg 
Png 

data Thumbnail Source

Constructors

Thumbnail 

Fields

fmt :: ImageFormat

Image Format Type

img :: Image

Thumbnail Image

sz :: Size

Thumbnail Size

lbs :: ByteString

Thumbnail Data

orgImg :: Image

Original Image

orgSZ :: Size

Original Size

saveFile :: FilePath -> IO ()
 

mkThumbnail :: ByteString -> IO (Either String Thumbnail) Source

Create a thumbnails with the default size

mkThumbnail' :: ((Int, Int), (Int, Int)) -> ByteString -> IO (Either String Thumbnail) Source

Create a thumbnail from a specific subregion of the image