From 004dbe7463fd1795b364c0c4ebcc00baf28ab60c Mon Sep 17 00:00:00 2001 From: darodi <4682830+darodi@users.noreply.github.com> Date: Mon, 28 Nov 2022 20:24:40 +0100 Subject: [PATCH] fix #1 Using 'Disable processing' option using my processed image get an error --- kindlecomicconverter/comic2ebook.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 4656283c..aacc8088 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -79,11 +79,11 @@ def buildHTML(path, imgfile, imgfilepath): imgfilepath = md5Checksum(imgfilepath) filename = getImageFileName(imgfile) deviceres = options.profileData[1] - if "Rotated" in options.imgMetadata[imgfilepath]: + if not options.noprocessing and "Rotated" in options.imgMetadata[imgfilepath]: rotatedPage = True else: rotatedPage = False - if "BlackBackground" in options.imgMetadata[imgfilepath]: + if not options.noprocessing and "BlackBackground" in options.imgMetadata[imgfilepath]: additionalStyle = 'background-color:#000000;' else: additionalStyle = ''