Popularity
4.1
Declining
Activity
0.0
Stable
5
3
2

Monthly Downloads: 13
Programming language: Haskell
License: MIT License
Tags: Network    
Latest version: v0.1.0

kraken alternatives and similar packages

Based on the "Networking" category.
Alternatively, view kraken alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of kraken or a related project?

Add another 'Networking' Package

README

Haskell API client library for the Kraken.io image compressor

import Data.ByteString as BS
import Network.Kraken

main :: IO ()
main = do
    let config = Config "<api key>" "<api secret>"
    h <- newHandle config

    img <- BS.readFile "image.png"

    let opt = Options (Just $ Lossy 80) (Just $ Crop 200 200) Nothing
    res <- compressImage h opt img
    case res of
        Left e -> error $ show e
        Right compressedImage -> do
            BS.writeFile "smaller-image.png" compressedImage