jaypeg v0.1.0 Jaypeg View Source
Simple library for JPEG processing.
Decoding
{:ok, <<104, 146, ...>>, [width: 2000, height: 1333, channels: 3]} =
Jaypeg.decode(File.read!("file/image.jpg"))
Link to this section Summary
Functions
Decode JPEG image and return information about the decode image such as width, height and number of channels.
Link to this section Functions
Link to this function
decode(encoded_image) View Source
Decode JPEG image and return information about the decode image such as width, height and number of channels.
Usage
{:ok, <<104, 146, ...>>, [width: 2000, height: 1333, channels: 3]} =
Jaypeg.decode(File.read!("file/image.jpg"))