/[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.2 by tjl, Fri Nov 15 08:11:44 2002 UTC revision 1.3 by jvk, Sun Dec 1 19:11:20 2002 UTC
# Line 11  def save(filename, pixels, w, h): Line 11  def save(filename, pixels, w, h):
11      SaveImage.writeBytesRGB(f, pixels)      SaveImage.writeBytesRGB(f, pixels)
12      f.close()      f.close()
13      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())
14        #os.system("rawtoppm %(w)s %(h)s img.tmp | ppmtojpeg > %(filename)s" % locals())
15        # ppmtojpeg is a bit faster than convert

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

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