Fix #8142 (fb2 output without images)

This commit is contained in:
Kovid Goyal 2011-01-01 10:10:20 -07:00
commit ffecd51ad4

View File

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