Last active
September 9, 2022 16:36
-
-
Save Le0xFF/f5ee6699c5983c72c366d771bb424ea3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires: ffmpeg, tageditor, graphicsmagick | |
# Original message: | |
# https://discord.com/channels/752715224716411001/752715584973832213/989321238910476338 | |
# Windows version | |
mkdir backup | |
For %%# in (*.mp3) Do ( | |
echo "Extracting Artwork..." | |
REM Extracts the album artwort to "$f".jpg (baseline) | |
ffmpeg -i "%%#" -map 0:1 "%%#".jpg | |
echo "Resizing new artwork..." | |
REM Resizes "$f".jpg | |
gm mogrify -resize 500x500 "%%#".jpg | |
echo "Embedding new artwork..." | |
REM Embeds album art back into "$f" | |
tageditor set cover=":front-cover" cover0="%%#".jpg -f "%%#" | |
echo "Done!" | |
echo. | |
echo. | |
del "%%#".jpg | |
move "%%#".bak backup | |
) | |
echo. | |
echo "Done, enjoy!" | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment