Writing a "Raw" Image to a File (Win, PIL)

W. eWatson notvalid2 at sbcglobal.net
Sat Apr 11 11:20:13 EDT 2009


I have an image of described as:
Img Info:  {}
  size:  (640, 480)
  format:  None
  mode:  P
  palette:  <ImagePalette.ImagePalette instance at 0x02393378>
  bands:  ('P',)
  type:  <type 'instance'>

I'd like to write it to a file. Apparently, I need to convert it to a string 
first. How do I do that? Pickle?
-- 
                                W. eWatson

              (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
               Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet






More information about the Python-list mailing list