Skip to content

Instantly share code, notes, and snippets.

@chabala
Last active August 19, 2024 17:58
Show Gist options
  • Save chabala/5627afc8f6e43ba101012590deb97b34 to your computer and use it in GitHub Desktop.
Save chabala/5627afc8f6e43ba101012590deb97b34 to your computer and use it in GitHub Desktop.
add album art to audio files
#!/usr/bin/env bash
set -o xtrace
set -o errexit
set -o nounset
if ! [ -x "$(command -v eyeD3)" ]; then
# ubuntu package is old, try `pip install eyeD3[display-plugin]`
sudo apt install eyed3
fi
audio="${1}"
image="${2}"
eyeD3 --add-image "${image}:FRONT_COVER" "${audio}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment