Skip to content

Instantly share code, notes, and snippets.

@chabala
Last active April 13, 2026 19:08
Show Gist options
  • Select an option

  • Save chabala/5627afc8f6e43ba101012590deb97b34 to your computer and use it in GitHub Desktop.

Select an option

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}"
# other usage hints
# removing things
# --user-text-frame='purl:' --user-text-frame='comment:'
# --user-text-frame='synopsis:' --user-text-frame='description:'
# --user-text-frame='compatible_brands:' --user-text-frame='minor_version:' --user-text-frame='major_brand:'
# adding typical fields
# --artist "" --album-artist "" --album ""
# --publisher "" --track-total 10 --release-date 2023-11-07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment