FB2 Output: Fix bug #8142, jpg image data not being written to file.

This commit is contained in:
John Schember 2011-01-01 10:20:33 -05:00
parent c17b189f56
commit 439bdc79c2

View File

@ -200,8 +200,10 @@ class FB2MLizer(object):
im = Image()
im.load(item.data)
im.set_compression_quality(70)
data = im.export('jpg')
raw_data = b64encode(data)
imdata = im.export('jpg')
raw_data = b64encode(imdata)
else:
raw_data = b64encode(item.data)
# Don't put the encoded image on a single line.
data = ''
col = 1