Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Mimetype of facsimile pages can vary
  • Loading branch information
Klaus Thoden committed May 31, 2018
1 parent a470d44 commit 2c0257b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion imxml2epub.py
Expand Up @@ -1263,7 +1263,9 @@ class FootnoteError(Exception):
strImageFilepath = libeoaconvert.sanitizeImage(os.getcwd() + "/CONVERT/epub/OEBPS/images/" + strImageFileDir + strImageFileName, GM_PATH, TL_PATH)

# Add copied file to contentopf
contentopf = addToContentopf(contentopf, "images/" + strImageFileDir + strImageFileName, strImageFileDir + strImageFileName, "jpg")
img_base_file_name, img_file_extension = os.path.splitext(strImageFileName)

contentopf = addToContentopf(contentopf, "images/" + strImageFileDir + strImageFileName, strImageFileDir + strImageFileName, img_file_extension[1:])

# strSVGTemplate = """<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 573 800" preserveAspectRatio="xMidYMid meet"></svg>"""
# xmlSVGFacsimile = etree.fromstring(strSVGTemplate)
Expand Down

0 comments on commit 2c0257b

Please sign in to comment.