mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 01:36:27 +00:00
fix all other webtoon bugs (#1123)
* adjust webtoon thresholds * fix arbitrary width webtoons * virtual pages can exceed height by 20% * prevent webtoon bad options * adjust virtual page ratio * don't change history too much * GUI change * add TODO * add scroll illusion
This commit is contained in:
@@ -42,7 +42,6 @@ from subprocess import STDOUT, PIPE, CalledProcessError
|
||||
from psutil import virtual_memory, disk_usage
|
||||
from html import escape as hescape
|
||||
import pymupdf
|
||||
import numpy as np
|
||||
|
||||
from .shared import getImageFileName, walkSort, walkLevel, sanitizeTrace, subprocess_run, dot_clean
|
||||
from .comicarchive import SEVENZIP, available_archive_tools
|
||||
@@ -1413,8 +1412,10 @@ def checkOptions(options):
|
||||
if options.webtoon:
|
||||
options.panelview = False
|
||||
options.righttoleft = False
|
||||
options.upscale = True
|
||||
options.upscale = False
|
||||
options.hq = False
|
||||
options.white_borders = True
|
||||
options.bordersColor = 'white'
|
||||
# Disable all Kindle features for other e-readers
|
||||
if options.profile == 'OTHER':
|
||||
options.panelview = False
|
||||
@@ -1533,8 +1534,8 @@ def makeBook(source, qtgui=None):
|
||||
cover = image.Cover(cover_path, options)
|
||||
|
||||
if options.webtoon:
|
||||
y = image.ProfileData.Profiles[options.profile][1][1]
|
||||
comic2panel.main(['-y ' + str(y), '-i', '-m', path], qtgui)
|
||||
x, y = image.ProfileData.Profiles[options.profile][1]
|
||||
comic2panel.main(['-y ' + str(y), '-x' + str(x), '-i', '-m', path], qtgui)
|
||||
if options.noprocessing:
|
||||
print("Do not process image, ignore any profile or processing option")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user