mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 00:03:34 +02:00
Fix #8142 (fb2 output without images)
This commit is contained in:
commit
ffecd51ad4
1 changed files with 4 additions and 2 deletions
|
|
@ -200,8 +200,10 @@ def fb2mlize_images(self):
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue