pub fn embed_image_from_memory(
music_filename: &Path,
image: &DynamicImage,
) -> Result<()>
Expand description
Embed the image image
into music_filename
, in-place. Any errors reading ID3
tags from the music file 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.