Posted on 2009-06-29 22:34:12-07 by linuxuser
Extracting a cover image from a mp3-file
How do I extract a cover-image, which is included in a mp3-file?

I tried
exiftool my.mp3 -previewimage -b > cover.jpg
Direct Responses: 11088 | Write a response
Posted on 2009-06-30 00:17:28-07 by exiftool in response to 11087
Re: Extracting a cover image from a mp3-file
Extract all tags with "exiftool my.mp3" and look for a tag with a value like "(Binary data XXXXX bytes, use -b option to extract)". Any images that can be extracted will appear like this. If there is an embedded image that exiftool can't extract, send me a sample and I will add support for decoding this information.

- Phil
Direct Responses: 11098 | Write a response
Posted on 2009-06-30 20:28:49-07 by linuxuser in response to 11088
Re: Extracting a cover image from a mp3-file
I have sent you 2 samples. Don't know if they are different re metadata.
Direct Responses: 11102 | Write a response
Posted on 2009-07-01 10:35:36-07 by exiftool in response to 11098
Re: Extracting a cover image from a mp3-file
ExifTool extracts an image from both of these samples. The tag name is "Picture".

- Phil
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.