Skip to content

Commit

Permalink
Merge pull request #1106 from jffifa/fix_image_cut
Browse files Browse the repository at this point in the history
fix image cut issue
  • Loading branch information
mvdctop committed Oct 26, 2023
2 parents 997390d + 13c5ceb commit 1757ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def add_to_pic(pic_path, img_pic, size, count, mode):
img_subt = Image.open(mark_pic_path)
scroll_high = int(img_pic.height / size)
scroll_wide = int(scroll_high * img_subt.width / img_subt.height)
img_subt = img_subt.resize((scroll_wide, scroll_high), Image.ANTIALIAS)
img_subt = img_subt.resize((scroll_wide, scroll_high), Image.LANCZOS)
r, g, b, a = img_subt.split() # 获取颜色通道,保持png的透明性
# 封面四个角的位置
pos = [
Expand Down

0 comments on commit 1757ca9

Please sign in to comment.