Function id3_image::extract_first_image[][src]

pub fn extract_first_image(
    music_filename: &Path,
    image_filename: &Path
) -> Result<()>

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.

Any errors from parsing id3 tags will be propagated. The function will also return an error if there’s no embedded images in the mp3 file.