From d3dce6f775621cf96f10e0aab08eb3d61f6a21f2 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Tue, 22 Apr 2008 20:26:09 +0000 Subject: [PATCH] Sigh. --- controller/Files.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/Files.py b/controller/Files.py index 78e57fb..732f4d4 100644 --- a/controller/Files.py +++ b/controller/Files.py @@ -375,6 +375,9 @@ class Files( object ): image_buffer.seek( 0 ) except IOError: image = Image.open( "static/images/default_thumbnail.png" ) + image_buffer = StringIO() + image.save( image_buffer, "PNG" ) + image_buffer.seek( 0 ) def stream( image_buffer ): CHUNK_SIZE = 8192