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. If you know how to do this, please let me know. THanks you very much. Vinhthuy Phan