Add optional 'format' argument to

Issue #48 open
René Dudfield
created an issue

== Arnau Sanchez, 2010-05-19 11:22:25 -0700

{{{ Sometimes we need to store a surface image into a string instead of a filename. I tested with StringIO and it worked:

import StringIO fd = StringIO.StringIO(), fd) print len(fd.getvalue())


However, since we have no real filename, we cannot set the file format. That's why I propose to add a third optional argument that forces the function to use a given format:, filename, format="TGA"): return None }}}

Comments (6)

  1. Log in to comment