/[gzz]/gzz/gzz/util/saveimage.py
ViewVC logotype

Diff of /gzz/gzz/util/saveimage.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by jvk, Sun Dec 1 19:11:20 2002 UTC revision 1.4 by tjl, Tue Dec 3 15:00:46 2002 UTC
# Line 10  def save(filename, pixels, w, h): Line 10  def save(filename, pixels, w, h):
10      f = FileOutputStream("img.tmp")      f = FileOutputStream("img.tmp")
11      SaveImage.writeBytesRGB(f, pixels)      SaveImage.writeBytesRGB(f, pixels)
12      f.close()      f.close()
13        print "To system"
14      os.system("rawtoppm %(w)s %(h)s img.tmp | convert - %(filename)s" % locals())      os.system("rawtoppm %(w)s %(h)s img.tmp | convert - %(filename)s" % locals())
15        print "Done system"
16      #os.system("rawtoppm %(w)s %(h)s img.tmp | ppmtojpeg > %(filename)s" % locals())      #os.system("rawtoppm %(w)s %(h)s img.tmp | ppmtojpeg > %(filename)s" % locals())
17      # ppmtojpeg is a bit faster than convert      # ppmtojpeg is a bit faster than convert

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26