embed_image

Function embed_image 

Source
pub fn embed_image(music_filename: &Path, image_filename: &Path) -> Result<()>
Expand description

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.

The image is encoded as a JPEG with a 90% quality setting, and embedded as a “Front cover”. Tags get written as ID3v2.3.