Open vijaykrpp opened 9 months ago
You have an example here: https://github.com/JamesHeinrich/getID3/blob/master/demos/demo.write.php
And a small example:
$image = getimagesize($path);
$tags['attached_picture'][0] = [
'data' => file_get_contents($path),
'picturetypeid' => $image[2] ?? null,
'description' => 'cover',
'mime' => $image['mime'],
];
I am using it in PHP via composer. How do I add album art as ID3 tags in mp3 files?