This commit is contained in:
Kovid Goyal 2017-05-06 11:42:25 +05:30
parent d68eb98518
commit 4c92c0bfa4
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -19,7 +19,6 @@ from calibre.ebooks.oeb.base import urlunquote
from calibre.ebooks.docx.images import pt_to_emu
from calibre.utils.filenames import ascii_filename
from calibre.utils.imghdr import identify
from calibre.ebooks.docx.writer.container import page_effective_area
Image = namedtuple('Image', 'rid fname width height fmt item')
@ -44,7 +43,7 @@ class ImagesManager(object):
def __init__(self, oeb, document_relationships, opts):
self.oeb, self.log = oeb, oeb.log
self.page_width, self.page_height = page_effective_area(opts)
self.page_width, self.page_height = opts.output_profile.width_pts, opts.output_profile.height_pts
self.images = {}
self.seen_filenames = set()
self.document_relationships = document_relationships