Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setting album art of a mp3 with php

Tags:

php

id3

I am looking for the best or any way to set the Album Art of mp3s using PHP.

Suggestions?

like image 703
ian Avatar asked Jul 11 '09 18:07

ian


1 Answers

Album art is a data frame identified as “Attached picture” due ID3v2 specification, and getID3() now is only one way to write all possible data frames in ID3v2 with pure PHP.

Look at this source: http://getid3.sourceforge.net/source/write.id3v2.phps

Search for this text in the source:

// 4.14  APIC Attached picture

there's a piece of code responsible for writing album art.

Another way, that seems to be not as slow as pure PHP, is to use some external application, that will be launched by PHP script. If your service designed to work under a high load, binary compiled tool will be a better solution.

like image 155
Sergey 'm17' Kolosov Avatar answered Oct 13 '22 01:10

Sergey 'm17' Kolosov