Crate id3_image_rs

Source
Expand description

A command-line tool to embed images into mp3 files. The real work is done by the “id3” crate, but this project makes it easier to deal with embedded cover art in particular.

Functions§

embed_image
Embed the image from image_filename into music_filename, in-place. Any errors reading ID3 tags from the music file or parsing the image get propagated upwards.
embed_image_from_memory
Embed the image image into music_filename, in-place. Any errors reading ID3 tags from the music file get propagated upwards.
extract_first_image
Extract the first found embedded image from music_filename and write it as a file with the given image_filename. The image file will be silently overwritten if it exists.
extract_first_image_as_img
Extract the first found embedded image from music_filename and return it as image object
remove_images
Remove all embedded images from the given music_filename. In effect, this removes all tags of type “APIC”.