[Image-SIG] How to convert an Image in RGB to JPG

Christopher Barker Chris.Barker at noaa.gov
Wed Feb 27 18:45:23 CET 2008


Frédéric Mantegazza wrote:
> On mardi 26 février 2008, Shabda Raaj wrote:
>> Basically I want to create an image, do some drawing on it and get the
>> image as  byte array.

> 'JPG" is not a valid mode 

exactly. Also, jpeg is NOT a byte array it's a lossy compressed format 
-- RGB already is a byte array.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov



More information about the Image-SIG mailing list