pandoc

Portabilityportable
Stabilityalpha
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Safe HaskellSafe-Infered

Text.Pandoc.ImageSize

Description

Functions for determining the size of a PNG, JPEG, or GIF image.

Documentation

data ImageType

Constructors

Png 
Gif 
Jpeg 

Instances

imageSize :: ByteString -> Maybe ImageSize

sizeInPixels :: ImageSize -> (Integer, Integer)

sizeInPoints :: ImageSize -> (Integer, Integer)

readImageSize :: FilePath -> IO (Maybe ImageSize)