1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-12 17:26:23 +00:00

fix ._cover.jpg on macos 15 (#1016)

This commit is contained in:
Alex Xu
2025-07-05 07:40:09 -07:00
committed by GitHub
parent 8f9e230b62
commit dbf8a3ddbd

View File

@@ -473,6 +473,9 @@ class Cover:
stroke_width=25
)
copy.save(target, "JPEG", optimize=1, quality=85)
dot_cover = Path(target).with_stem('._' + Path(target).stem)
if os.path.exists(dot_cover):
os.remove(dot_cover)
except IOError:
raise RuntimeError('Failed to save cover.')