add webp output support (ignored for Kindle MOBI/EPUB and all PDF) (#1290)

* add webp output support (ignored for Kindle MOBI/EPUB)

* disable png extra optons by default

* pdf webp is not supported
This commit is contained in:
Alex Xu
2026-04-12 09:04:21 -07:00
committed by GitHub
parent 8f4072bfab
commit e4c918f0f3
6 changed files with 620 additions and 568 deletions
+3
View File
@@ -359,6 +359,8 @@ class WorkerThread(QThread):
options.forcepng = True
elif GUI.mozJpegBox.checkState() == Qt.CheckState.Checked:
options.mozjpeg = True
if GUI.webpBox.isChecked():
options.webp = True
if GUI.pngLegacyBox.isChecked():
options.pnglegacy = True
if GUI.noQuantizeBox.isChecked():
@@ -1068,6 +1070,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
'metadataTitleBox': GUI.metadataTitleBox.checkState(),
'mozJpegBox': GUI.mozJpegBox.checkState(),
'forcePngRgbBox': GUI.forcePngRgbBox.checkState(),
'webpBox': GUI.webpBox.checkState(),
'pngLegacyBox': GUI.pngLegacyBox.checkState(),
'noQuantizeBox': GUI.noQuantizeBox.checkState(),
'jpegQualityBox': GUI.jpegQualityBox.checkState(),