génération image score
This commit is contained in:
parent
f75187d05b
commit
4000caae03
@ -9,12 +9,10 @@ list($width, $height) = getimagesize($filename);
|
||||
$new_width = $width * $percent;
|
||||
$new_height = $height;
|
||||
|
||||
// Déclaration de la nouvelle image
|
||||
$image = new Imagick($filename);
|
||||
// Découper l'image
|
||||
$image->cropImage($new_width, $new_height, 0, 0);
|
||||
|
||||
$image->setImageFormat('png');
|
||||
/* Affichage de l'image avec les entêtes */
|
||||
header('Content-type: image/png');
|
||||
echo $image;
|
||||
?>
|
Loading…
Reference in New Issue
Block a user