EmbedArt Plugin =============== Typically, beets stores album art in a "file on the side": along with each album, there is a file (named "cover.jpg" by default) that stores the album art. You might want to embed the album art directly into each file's metadata. While this will take more space than the external-file approach, it is necessary for displaying album art in some media players (iPods, for example). This plugin was added in beets 1.0b8. Embedding Art Automatically --------------------------- To automatically embed discovered album art into imported files, just enable the plugin (see :doc:`/plugins/index`). You'll also want to enable the :doc:`/plugins/fetchart` to obtain the images to be embedded. Art will be embedded after each album is added to the library. This behavior can be disabled with the ``auto`` config option (see below). .. _image-similarity-check: Image Similarity '''''''''''''''' When importing a lot of files with the ``auto`` option, one may be reluctant to overwrite existing embedded art for all of them. You can tell beets to avoid embedding images that are too different from the existing ones. This works by computing the perceptual hashes (`PHASH`_) of the two images and checking that the difference between the two does not exceed a threshold. You can set the threshold with the ``compare_threshold`` option. A threshold of 0 (the default) disables similarity checking and always embeds new images. Set the threshold to another number---we recommend between 10 and 100---to adjust the sensitivity of the comparison. The smaller the threshold number, the more similar the images must be. This feature requires `ImageMagick`_. Manually Embedding and Extracting Art ------------------------------------- The ``embedart`` plugin provides a couple of commands for manually managing embedded album art: * ``beet embedart [-f IMAGE] QUERY``: embed images into the every track on the albums matching the query. If the ``-f`` (``--file``) option is given, then use a specific image file from the filesystem; otherwise, each album embeds its own currently associated album art. * ``beet extractart [-o FILE] QUERY``: extracts the image from an item matching the query and stores it in a file. You can specify the destination file using the ``-o`` option, but leave off the extension: it will be chosen automatically. The destination filename defaults to ``cover`` if it's not specified. * ``beet clearart QUERY``: removes all embedded images from all items matching the query. (Use with caution!) Configuring ----------- The ``auto`` option lets you disable automatic album art embedding. To do so, add this to your ``config.yaml``:: embedart: auto: no A maximum image width can be configured as ``maxwidth`` to downscale images before embedding them (the original image file is not altered). The resize operation reduces image width to ``maxwidth`` pixels. The height is recomputed so that the aspect ratio is preserved. `PIL`_ or `ImageMagick`_ is required to use the ``maxwidth`` config option. See also :ref:`image-resizing` for further so that the aspect ratio is preserved. The ``compare_threshold`` option defines how similar must candidate art be regarding to embedded art to be written to the file (see :ref:`image-similarity-check`). The default is 0 (no similarity check). Requires `ImageMagick`_. To avoid embedding album art for files that already have album art, set the ``ifempty`` config option to ``yes``. .. _PIL: http://www.pythonware.com/products/pil/ .. _ImageMagick: http://www.imagemagick.org/ .. _PHASH: http://www.fmwconcepts.com/misc_tests/perceptual_hash_test_results_510/