# Extract Cover/Album Art

**URL:** https://community.mp3tag.de/t/extract-cover-album-art/13373
**Category:** Off-Topic
**Created:** [April 30, 2012, 4:46pm UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373 "2012-04-30T16:46:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![l33tissw00t](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@l33tissw00t](https://community.mp3tag.de/u/l33tissw00t)
#### Post date: [April 30, 2012, 4:46pm UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373/1 "2012-04-30T16:46:00Z")

</div>

Hello there!

I'm hoping this is the right forum category. To start off, MP3Tag is awesome! 🙂 It's really an extremely stable and featured program, which I share with MANY people, and it's always a big hit. Recently someone asked me the following:  
Is it possible, say using PHP, to "echo" (extract/view) art from an mp3 file? Meaning, if on server there is a song.mp3 which already has cover/album art encoded, is there a way/script to extract that to view on webpage.

(PHP was just an example, it can be js, etc).

TIA!

---

<div class="post-metadata">

### Author: ![ryerman](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ryerman/32/5285_2.png) [@ryerman](https://community.mp3tag.de/u/ryerman)
#### Post date: [April 30, 2012, 5:47pm UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373/2 "2012-04-30T17:47:00Z")

</div>

> [@DanH](#):
>
> ...Is it possible, say using PHP, to "echo" (extract/view) art from an mp3 file? Meaning, if on server there is a song.mp3 which already has cover/album art encoded, is there a way/script to extract that to view on webpage.
> 
> (PHP was just an example, it can be js, etc).

I assume you know that Mp3tag can extract the "picture" field, from various file types, to the users file system.  
However, there are only minimal command line arguments available, and they are mostly (only?) concerned with loading files and directories. AFAIK, there are no plans to expand command line functionality.

"[ExifTool](http://www.sno.phy.queensu.ca/%7Ephil/exiftool/) is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files."

It can extract the "picture" field (or any other field) from the tag of various audio file types (mp3, flac, wma, at least). It is a monster of a program, aimed at photographers, and highly respected in that community. It is well documented and supported by the author, Phil Harvey, but the learning curve is steep!

I've used it with .bat and .vbs scripts and faintly remember talk in the Exiftool forums of js and php "wrappers". Maybe that indicates it can be called by those scripts.

---

<div class="post-metadata">

### Author: ![l33tissw00t](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@l33tissw00t](https://community.mp3tag.de/u/l33tissw00t)
#### Post date: [April 30, 2012, 6:27pm UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373/3 "2012-04-30T18:27:15Z")

</div>

> [@ryerman](#):
>
> I assume you know that Mp3tag can extract the "picture" field, from various file types, to the users file system.  
> However, there are only minimal command line arguments available, and they are mostly (only?) concerned with loading files and directories. AFAIK, there are no plans to expand command line functionality.
> 
> "[ExifTool](http://www.sno.phy.queensu.ca/%7Ephil/exiftool/) is a platform-independent Perl library plus a command-line application for reading, writing and editing meta information in a wide variety of files."
> 
> It can extract the "picture" field (or any other field) from the tag of various audio file types (mp3, flac, wma, at least). It is a monster of a program, aimed at photographers, and highly respected in that community. It is well documented and supported by the author, Phil Harvey, but the learning curve is steep!
> 
> I've used it with .bat and .vbs scripts and faintly remember talk in the Exiftool forums of js and php "wrappers". Maybe that indicates it can be called by those scripts.

Thank you for the quick response.  
Yes, I'm familiar with MP3Tag's extract feature. Thanks for checking though.  
Interesting tip re:exiftool. Will look into it. Thank you.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 1, 2012, 5:25am UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373/4 "2012-05-01T05:25:17Z")

</div>

Just to let you know about the ExifTool and mp3:  
It can only READ mp3, not write...

MP3 R MPEG-1 layer 3 audio (uses ID3 information)  
source: [http://www.sno.phy.queensu.ca/~phil/exiftool/#supported](http://www.sno.phy.queensu.ca/~phil/exiftool/#supported)

---

<div class="post-metadata">

### Author: ![l33tissw00t](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/9de053/32.png) [@l33tissw00t](https://community.mp3tag.de/u/l33tissw00t)
#### Post date: [May 2, 2012, 9:19am UTC](https://community.mp3tag.de/t/extract-cover-album-art/13373/5 "2012-05-02T09:19:41Z")

</div>

Thanks. Turns out its possible:  
[http://u88.n24.queensu.ca/exiftool/forum/i...2.html#msg19362](http://u88.n24.queensu.ca/exiftool/forum/index.php/topic,4102.msg19362.html#msg19362)
