Update core.py

解决封面裁切过多。
This commit is contained in:
Feng4
2021-02-09 09:42:33 +08:00
committed by GitHub
parent c093b73940
commit 6505d95829

View File

@@ -509,7 +509,7 @@ def cutImage(imagecut, path, number, c_word):
imgSize = img.size imgSize = img.size
w = img.width w = img.width
h = img.height h = img.height
img2 = img.crop((w - h / 1.5, 0, w, h)) img2 = img.crop((w / 1.9, 0, w, h))
img2.save(path + '/' + number + c_word + '-poster.jpg') img2.save(path + '/' + number + c_word + '-poster.jpg')
print('[+]Image Cutted! ' + path + '/' + number + c_word + '-poster.jpg') print('[+]Image Cutted! ' + path + '/' + number + c_word + '-poster.jpg')
except: except: