filemtime($b); }); shuffle($files); $superpose = @imagecreatefrompng($files[0]); //imagecopymerge($img, $superpose, 0, 0, 0, 0, $width, $height, 50); imagecopyresampled($img,$superpose, 0, 0, 0, 0, $width, $height, imagesx($superpose), imagesy($superpose)); imagedestroy($superpose); } imagecopymerge($img, $block_image, 0, 0, 0, 0, $width, $height, 45); // --- // --- envoyer l'image au navigateur // --- header("Content-Type: image/png"); imagepng($img); imagedestroy($img); imagedestroy($block_image); ?>