-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Kraken.io API client
--   
--   Kraken is a robust, ultra-fast image optimizer and compressor with
--   best-in-class algorithms.
@package kraken
@version 0.1.0

module Network.Kraken
data Config
Config :: !String -> !String -> Config
[cApiKey] :: Config -> !String
[cApiSecret] :: Config -> !String
data Handle
newHandle :: Config -> IO Handle
data Quality
Lossless :: Quality
Lossy :: !Int -> Quality
data Resize
Exact :: !Int -> !Int -> Resize
Portrait :: !Int -> Resize
Landscape :: !Int -> Resize
Auto :: !Int -> !Int -> Resize
Fit :: !Int -> !Int -> Resize
Crop :: !Int -> !Int -> Resize
Square :: !Int -> Resize
Fill :: !Int -> !Int -> !String -> Resize
data Format
JPEG :: Format
PNG :: Format
GIF :: Format
data Convert
Convert :: Format -> !(Maybe String) -> !(Maybe Bool) -> Convert
[format] :: Convert -> Format
[background] :: Convert -> !(Maybe String)
[keepExtension] :: Convert -> !(Maybe Bool)
data Options
Options :: !(Maybe Quality) -> !(Maybe Resize) -> !(Maybe Convert) -> Options
[quality] :: Options -> !(Maybe Quality)
[resize] :: Options -> !(Maybe Resize)
[convert] :: Options -> !(Maybe Convert)
compressImage :: Handle -> Options -> ByteString -> IO (Either Error ByteString)
instance GHC.Show.Show Network.Kraken.Error
instance GHC.Show.Show Network.Kraken.Success
instance Data.Aeson.Types.ToJSON.ToJSON Network.Kraken.Format
instance Data.Aeson.Types.ToJSON.ToJSON Network.Kraken.Resize
