Skip to content

Commit

Permalink
remove javsp/image __main__
Browse files Browse the repository at this point in the history
  • Loading branch information
glyh committed Sep 27, 2024
1 parent ccb576d commit 94cc090
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions javsp/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,3 @@ def get_pic_size(pic_path):
"""获取图片文件的分辨率"""
pic = ImageOps.exif_transpose(Image.open(pic_path))
return pic.size


if __name__ == "__main__":
import os, sys
import pretty_errors
pretty_errors.configure(display_link=True)
for file in sys.argv[1:]:
if os.path.exists(file):
base, ext = os.path.splitext(file)
poster = base.replace('_fanart', '') + '_poster' + ext
crop_poster(file, poster)

0 comments on commit 94cc090

Please sign in to comment.