Hello
this script is working on 4.4.0 and not on 4.4.1
any idea ?
$filename = 'no_image.jpg';
$filename1 = 'no_image1.jpg';
// Définition de la largeur et de la hauteur maximale
$width = 200;
$height = 200;
// Content type
header('Content-type: image/jpeg');
// Cacul des nouvelles dimensions
list($width_orig, $height_orig) = getimagesize($filename);
if ($width && ($width_orig < $height_orig)) {
$width = ($height / $height_orig) $width_orig;
} else {
$height = ($width / $width_orig) $height_orig;
}
// Redimensionnement
$image_p = imagecreatetruecolor($width, $height) or die ("Impossible de crée un flux d'image GD");
/$text_color = imagecolorallocate ($image_p, 233, 14, 91);
imagestring ($image_p, 1, 5, 5, "Une simple chaîne de texte", $text_color);
imagepng ($im);
imagedestroy ($im);/
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);
// Affichage
imagejpeg($image_p, $filename1, 100);