Skip to content

Commit

Permalink
1 using disable processing option using my processed image get an err…
Browse files Browse the repository at this point in the history
…or (#11)

* fix #1 Using 'Disable processing' option using my processed image get an error

* fix #1 Using 'Disable processing' option using my processed image get an error
  • Loading branch information
darodi authored Nov 28, 2022
1 parent 3aa783f commit 8ab7d10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# CHANGELOG

#### 5.5.3b12:
* fix #1 Using 'Disable processing' option using my processed image get an error [darodi/kcc#1](https://github.com/darodi/kcc/issues/1), thanks [@darodi](https://github.com/darodi)

#### 5.5.3b11:
* KFX Output in GUI [darodi/kcc#9](https://github.com/darodi/kcc/issues/9), thanks [@darodi](https://github.com/darodi)

Expand Down
2 changes: 1 addition & 1 deletion kindlecomicconverter/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '5.5.3b11'
__version__ = '5.5.3b12'
__license__ = 'ISC'
__copyright__ = '2012-2022, Ciro Mattia Gonano <[email protected]>, Pawel Jastrzebski <[email protected]>, darodi'
__docformat__ = 'restructuredtext en'
4 changes: 2 additions & 2 deletions kindlecomicconverter/comic2ebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit 8ab7d10

Please sign in to comment.