himg-0.1.0.0: Simple gtk2hs image viewer. Point it at an image and fire away.

Portabilityportable
Stabilityexperimental
Maintainerfuuzetsu@fuuzetsu.co.uk
Safe HaskellNone

Graphics.HImg

Description

 

Synopsis

Documentation

displayImage :: Image -> IO ()Source

Takes Image and spawns a window which displays it. It does not do any scaling and such. You can kill the window with ‘q’.

printHelp :: IO ()Source

Prints the help message.

viewFromFile :: FilePath -> IO ()Source

Opens FilePath from a file. Exits with 2 if the file doesn't exist.

viewFromLink :: String -> IO ()Source

Opens a passed in URL if possible. Exits with 2 if a download problem occurs.

viewGuess :: String -> IO ()Source

Attempts to guess whether the input is a file or a URL and opens the image appropriately. Exits with 3 if it can't decide what it's looking at.