picedit
=======
A simple CLI and API for image manipulation
CLI Usage
---------
```
Usage: picedit [OPTIONS]
Options:
--contrast - a number between -255 and 255
--brightness - a number between -255 and 255
--gamma
--fade - a number between 0 and 100
--rotate - rotate image by n degrees
--grayscale - turn the image grayscale
--invert - invert (negative) the image
--output - output name, defaults to 'output.png'
```
Example:
```
stack exec picedit -- dreamboy.jpg --grayscale --contrast 180 --gamma 2 --rotate 180
```
Library
-------
[Documentation available at hackage](https://hackage.haskell.org/package/picedit-0.1.0.0/docs/Data-Picture.html)
```haskell
import Data.Picture
main = do
pic <- readPicture "myfile.png"
writePicturePng "output.png" (grayscale pic)
```