in reply to Get MP3 Album Art with MP3::Tag
use MP3::Tag; my $mp3 = MP3::Tag->new("withimage.mp3") or die "no File"; # Get the tags from the MP3 $mp3->get_tags; $id3v2 = $mp3->{ID3v2}; # Get the APIC frame from the Tag (The Image) which # returns a hash ref my $Pic = $id3v2->get_frame("APIC"); # returns open (SAVE, ">out.jpg"); binmode SAVE; print SAVE $Pic->{_Data}; close SAVE;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Get MP3 Album Art with MP3::Tag
by allyc (Scribe) on Jul 21, 2005 at 09:06 UTC | |
by true (Pilgrim) on Jul 21, 2005 at 16:00 UTC | |
by allyc (Scribe) on Jul 21, 2005 at 23:44 UTC |