# Eikōn [![Elixir](]( [![License](]( [![Hex Version](](

Eikōn is an image file parser. Feed it a PNG, JPG, and it will return informations about it.

## Installation

def deps do
    [{:eikon, "~> 0.0.2"}]

## Usage
Each file format is supported through a parser, for instance `Eikon.PNG.Parser` which contains the functions to work with it.  
For the moment, the following formats are supported :

- [x] PNG
- [x] GIF (Although `content/1` could be improved)
- [ ] JPEG

### The `Parser` Behaviour

Every parser implements the [Parser](lib/eikon.ex#L11) behaviour, which contains standard functions:

* General Parsing
    * `parse/1`
    * `parse!/1`

* Magic number checking
    * `magic?/1`

* Metadata extraction
    * `infos/1`
* Returning the content of the image (without the metadata)
    * `content/1`
    * `content!/1`