Sites-Camelia/branches/divan-dit-vent/scripts/imageReturn.php

15 lines
363 B
PHP
Raw Normal View History

2021-10-20 15:50:45 +00:00
<?php
require_once('getid3/getid3.php');
$mp3= $_GET["mp3"];
$mp3 = str_replace('.png', '.mp3', $mp3);
$mp3 = str_replace('.jpg', '.mp3', $mp3);
$getID3 = new getID3;
$OldThisFileInfo = $getID3->analyze($mp3);
header('Content-Type: ' . $OldThisFileInfo['comments']['picture'][0]['image_mime']);
echo $OldThisFileInfo['comments']['picture'][0]['data'];
die;
?>