Permalink
Browse files

closing #53

  • Loading branch information...
sorl committed Sep 9, 2011
1 parent 83fb7e9 commit 8c3021466f7f6f40b462b4b5d94020def1ed8470
Showing with 1 addition and 0 deletions.
  1. +1 −0 sorl/thumbnail/engines/convert_engine.py
@@ -67,6 +67,7 @@ def is_valid_image(self, raw_data):
handle, tmp = mkstemp()
with open(tmp, 'w') as fp:
fp.write(raw_data)
+ fp.flush()
p = Popen([settings.THUMBNAIL_IDENTIFY, tmp])
retcode = p.wait()
os.close(handle)

0 comments on commit 8c30214

Please sign in to comment.