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
By epb on May 21, 2010
This week I was working on a computer that was having problems with it’s hard drive. I could get it to start once, and then it would fail to start up again. As you can imagine, the drive had some bad sectors, but the people I was fixing this for could not afford another $60 [...]
Posted in Problems | Tagged computer problems, hard drive
By epb on May 6, 2010
I made a pretty normal trip to jlist (an online shop selling all manner of things Japanese) and for some reason thought: I bet I could change this store layout with Greasemonkey! With a couple of hours of fiddling, I had managed to create a script that took their HTML and mangled it to my [...]
Posted in Uncategorized