On Mon, Oct 23, 2000 at 01:51:20PM -0400, Vinhthuy T Phan <vphan@xxxxxxxxxxxxx> wrote: > Hello, thanks for your help. > > My goal is to extract an array (each entry is a RGB value) out of a .jpg > file (for my current project). The only way I can think of is to save a > .jpg file in gimp as a RGB format, then read the file and > store in an array. Unfortunately, I dont know how to convert a > .jpg file to a readable RGB format. use imagemagick: convert img.jpg test.rgb (or test.ppm for human-readable format, or ...) -- -----==- | ----==-- _ | ---==---(_)__ __ ____ __ Marc Lehmann +-- --==---/ / _ \/ // /\ \/ / pcg@xxxxxxxxxxxxx |e| -=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE --+ The choice of a GNU generation | |