By epb on May 31, 2010
An odd quest perhaps: but adding album art to an MP3 (in ID3 tags) is readily doable with the KTaglib extension for PHP. Once you have it, you can use a script like this to add artwork to an MP3: $mp3 = new KTaglib_MPEG_File(’2.mp3′); $idv2 = $mp3->getID3v2Tag(true); $album = new KTaglib_ID3v2_AttachedPictureFrame(); $album->setType(KTaglib_ID3v2_AttachedPictureFrame::FrontCover); $album->setPicture(‘testalbum.jpg’); $album->setMimeType(‘image/jpeg’); $idv2->addFrame($album); [...]
Posted in php | Tagged metadata, mp3, php | Leave a response
By epb on November 17, 2009
Yeah, I could probably file this one under “overkill.” I’ve managed to set up a virtual machine running Danbooru so that I may finally get my personal photo collection organized AND be able to do so regardless of operating system I choose to boot. The traditional hierarchial manner of organizing files is a complete waste [...]
Posted in Small Project | Tagged danbooru, metadata | Leave a response
Copyright © 2010 Random Renegade Bits.