1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-12 16:29:37 +00:00

add mozJpeg warning

This commit is contained in:
Alex Xu
2023-07-01 08:31:56 -07:00
parent 5c1408e7b7
commit 829334556f

View File

@@ -20,10 +20,15 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import io
import os
import mozjpeg_lossless_optimization
from PIL import Image, ImageOps, ImageStat, ImageChops, ImageFilter
from .shared import md5Checksum
try:
import mozjpeg_lossless_optimization
except ImportError as e:
print(e)
print("Check https://github.com/ciromattia/kcc/issues/541#issuecomment-1587343401")
# 0.045 was determined by
# 1200 / 824 = 1.456 (Kindle DX resolution)
# 2250 / 1500 = 1.5 (Typical manga page resolution)