mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 16:04:47 +00:00
bump large thumbnails to 512 px
+ stop extracting original thumbnails
This commit is contained in:
1 parent
cdfa546978
commit
a99d8c654d
5 files changed
+19
-19
No files matched your search
@@ -31,7 +31,6 @@ def extract_thumb(filepath: str, webp_path: str, overwrite=False) -> bool:
|
||||
Extracts the thumbnail from an audio file.
|
||||
Returns the path to the thumbnail.
|
||||
"""
|
||||
original_img_path = os.path.join(Paths.get_original_thumb_path(), webp_path)
|
||||
lg_img_path = os.path.join(Paths.get_lg_thumb_path(), webp_path)
|
||||
sm_img_path = os.path.join(Paths.get_sm_thumb_path(), webp_path)
|
||||
|
||||
@@ -42,7 +41,6 @@ def extract_thumb(filepath: str, webp_path: str, overwrite=False) -> bool:
|
||||
width, height = img.size
|
||||
ratio = width / height
|
||||
|
||||
img.save(original_img_path, "webp")
|
||||
img.resize((tsize, int(tsize / ratio)), Image.ANTIALIAS).save(
|
||||
lg_img_path, "webp"
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user