gimp-developer  

Re: How to convert a .jpg file to a RGB format

Steinar H. Gunderson
Tue, 24 Oct 2000 00:14:10 -0700

On Mon, Oct 23, 2000 at 07:20:50PM -0400, Vinhthuy T Phan wrote:
>To the people who have suggested jpeblib, what keywords or procedures I
>should look for in the jpeg manual?  I skimmed through the manual the
>couldn't find a specific section that details on how to convert an image
>to a RGB-array.  Thanks again.

Check example.c (included with libjpeg). It gives an example for how you
easily (row by row) can read almost any standard JPEG file, and get raw
RGB data into an array.

/* Steinar */