Latest version![Batch Batch](https://cdn.instructables.com/FJZ/WKT8/J0SEGOOF/FJZWKT8J0SEGOOF.LARGE.jpg?auto=webp&frame=1&height=300)
Close
Close
Released:
Batch Album Art Resizing. This is exactly what I was looking for. I wanted high quality art embedded into my MP3's for a variety of sources (iTunes, Zune, PS3, WMP 11 & 12). My current MP3's had differnt embedded sizes, anywhere from 2000x2000 to 500x500. Without going through them all and individually 'photoshopping' the embedded art, then. Jul 26, 2010 Embed cover art in bulk. July 26, 2010 in album art by Dan Gravell. Embedding art in your music files is the most portable way to store your album artwork.Most music players recognise it, and there are no additional files to copy when transferring your music. Alumnus Associate Editor Rick Broida previously covered embedding album art into your MP3s, and more than 18 months later, his chosen tool, MediaMonkey, is still the quickest and most reliable way.
Batch cover art downloader and embedder for audio files
Project description
THE PROBLEM
Missing cover art for large imported music libraries.
EXISTING SOLUTIONS
- Apple's Music App (and its predecessor iTunes) has a 'Get Album Artwork' feature, but it isn't reliable and doesn't actually embed cover art into your audio files. That means if you move your music library elsewhere, you'll be missing all your album artwork.
- Metadata utilities like Metadatics are great (and cheap if not free), but they can require a lot of manual interaction to go through each album and select artwork from search results. This can be forbidding for large libraries of thousands of albums.
THIS SOLUTION
This Python package will batch-update your entire library without manual interaction for each album.
It uses Apple Music's artwork, which is already standardized and high-quality. It also embeds the artwork directly into your audio files, so that it's independent of your player.
Supported formats (so far)
- MP3
- MP4 (.m4a)
Requirements
- Python 3.5 or greater
- Python packages: mutagen
Usage
From the Command Line
if you omit
path
, it will scan the current working directoryPro Tip: You can run with
--test
first, then browse/prune the downloaded artwork, then run again with --no_download
to embed only the artwork you didn't prune.From the Python Environment
OPTIONS
is a dict of the same options listed for the commandline, e.g.--verbose
->{'verbose': True}
- you can omit
PATH_TO_AUDIO_LIBRARY
to default to your current directory - your
CoverFinder
object keeps a list of files_processed, files_skipped, files_failed, files_invalid
How it works
- First, it recursively scans your provided folder for supported files.
- Step 1 is skipped if you specified a single file instead of a folder.
- For each file without embedded artwork, attempts to download from Apple Music based on artist and album metadata.
- Step 2 is skipped if it had already downloaded (or attempted to download) the image file.
- Step 2 is also skipped based on
--no_download
or--skip_*
options.
- If artwork is found, it's embedded into the audio file.
Why do you download from Apple Music and not Google image search?
- Google's Image Search API requires a dev token (so does Apple Music's API, but not its public web query URL).
- Google search queries are heavily throttled.
- Apple Music's cover sizes are standardized and sufficiently large.
Troubleshooting
The artwork is embedded now, but Apple's Music App still won't show it.
Try re-importing one of your embedded files. If the re-imported version shows artwork, you need to reimport your music library. You can do this without losing your playlists as follows:
- File->Library->Export Library... and name your exported library file.
- Visit Music->Preferences...->Files and screenshot your options. You'll need to restore them later.
- Quit the app and relaunch while holding down the Option key.
- Choose 'Create Library...' and pick a new location.
- Visit Music->Preferences...->Files and restore your desired options.
- File->Library->Import Playlist... and choose your library file from step 1. (Yes, it's called 'Import Playlist...' but you actually use this to import your library.)
Step 6 will take a while.
The artwork appears in Apple's Music App but not my iOS device.
You'll have to unsync all your music and re-sync it again. Try it with a single file first.
Release historyRelease notifications | RSS feed
1.3.2
1.3.1
1.3.0
Batch Embed Album Art Into Mp3 Free
1.2.1
1.2.0
1.1.0
![Batch Batch](https://cdn.instructables.com/FJZ/WKT8/J0SEGOOF/FJZWKT8J0SEGOOF.LARGE.jpg?auto=webp&frame=1&height=300)
1.0.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size get_cover_art-1.3.2-py3-none-any.whl (9.8 kB) | File type Wheel | Python version py3 | Upload date | Hashes |
Filename, size get_cover_art-1.3.2.tar.gz (7.0 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for get_cover_art-1.3.2-py3-none-any.whl
Batch Embed Album Art Into Mp3 Music
Algorithm | Hash digest |
---|---|
SHA256 | 24ef472956bb0ee9d0709167f1eaa14ffa551ffc64e7bd582776db6765bc9615 |
MD5 | 08493562118ebff7c66cb84a4312e262 |
BLAKE2-256 | bc44130c50b677ba703c22934507bd762b75d65c80efaf701a5278f990c63b30 |
Hashes for get_cover_art-1.3.2.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | 1f2734aec2c9573b30e67c7e0759e55fb71706c793c38d9c2933733d7a1513bc |
MD5 | eeec4b546720d00ae44531bc517495e9 |
BLAKE2-256 | 320ce354a06ed8ca5896f8dd9248f0b63d0c67df2e98a936e3e7c12e968ee9bc |