mirror of
https://github.com/ciromattia/kcc
synced 2025-12-19 20:51:45 +00:00
remove mozJpeg
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -11,5 +11,4 @@ KindleComicConverter*.egg-info/
|
|||||||
/venv/
|
/venv/
|
||||||
/kindlegen*
|
/kindlegen*
|
||||||
/kcc.bat
|
/kcc.bat
|
||||||
mozjpeg_lossless_optimization-*.whl
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|||||||
@@ -20,15 +20,10 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import io
|
import io
|
||||||
import os
|
import os
|
||||||
|
import mozjpeg_lossless_optimization
|
||||||
from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter
|
from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter
|
||||||
from .shared import md5Checksum
|
from .shared import md5Checksum
|
||||||
|
|
||||||
try:
|
|
||||||
import mozjpeg_lossless_optimization
|
|
||||||
except ImportError as e:
|
|
||||||
print(e)
|
|
||||||
print("WARNING: https://github.com/ciromattia/kcc/issues/541#issuecomment-1587343401")
|
|
||||||
|
|
||||||
# 0.045 was determined by
|
# 0.045 was determined by
|
||||||
# 1200 / 824 = 1.456 (Kindle DX resolution)
|
# 1200 / 824 = 1.456 (Kindle DX resolution)
|
||||||
# 2250 / 1500 = 1.5 (Typical manga page resolution)
|
# 2250 / 1500 = 1.5 (Typical manga page resolution)
|
||||||
|
|||||||
Reference in New Issue
Block a user