Images in MP3s

| | Comments (0)
iTunes 4 can store album cover art in the MP3 tag.

perl -MMP3::Info -e '
$file = shift;
$x = get_mp3tag($file, 2, 2);
($i = $x->{PIC}) =~ s/^(....).//;
($e = $1) =~ s/\W//g;
$file =~ s/\.mp3/.$e/;
open $f, ">", $file;
print $f $i;
' song.mp3

This can extract it!

Leave a comment

<pudge/*> (pronounced "PudgeGlob") is thousands of posts over many years by Pudge.

"It is the common fate of the indolent to see their rights become a prey to the active. The condition upon which God hath given liberty to man is eternal vigilance; which condition if he break, servitude is at once the consequence of his crime and the punishment of his guilt."

About this Entry

This page contains a single entry by pudge published on April 28, 2003 2:43 PM.

Something Nice was the previous entry in this site.

iTunes and "Sharing" is the next entry in this site.

Find recent content on the main index or look in the archives to find all content.