Fix album art issue with music files

This commit is contained in:
Jaret Burkett committed 2026-09-13 18:08:37 -06:00
1 parent 881143cbe8
commit 82137c8ca0
4 files changed
+101 -42

No files matched your search

+4
View File
@@ -1301,6 +1301,10 @@ class GenerateImageConfig:
cap.release()
if ok:
img = PILImage.fromarray(cv2.cvtColor(frame, cv2.COLOR_BGR2RGB))
elif ext in ['.mp3', '.wav', '.flac', '.ogg']:
# waveform cover rendered at thumb size so the UI never has to read the tags
from toolkit.audio.album_artwork import create_artwork, load_waveform
img = create_artwork(load_waveform(media_path), size=300)
if img is None:
return False
img = img.convert('RGB')