Reading JPEG images in Erlang

Zvi <>
Tue Aug 3 18:03:36 CEST 2010

On Aug 3, 5:38 pm, Bob Ippolito <> wrote:
> On Tue, Aug 3, 2010 at 10:59 PM, Zvi <> wrote:
> > Hi,
> > I trying to parse JPEG file in Erlang. I tried jungerl erl_img
> > library, it seems to be working for other image formats, but not for
> > JPEG.
> > I prefer native Erlang code, but if not available, I would use binding
> > to some C library.
> > Any pointers?
> Try using a different one, some of the versions of erl_img out there e
> just broken. I think this is the branch we use internally:
> -bob

This is the one I using.
The problem is, unlike for other file formats, like PNG or GIF, it
doesn't load pixels.
For example:

1> erl_img:load("/home/me/some.jpg").

Compare it to PNG:

2> erl_img:load("/home/me/some.png").

More information about the erlang-questions mailing list