From a9fc4041abc0142bc8eac485e4ef9de2b77a0804 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 14 Oct 2007 09:40:53 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d=E9bugage=20sur=20la=20fonction=20imag?= =?UTF-8?q?efill?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/lib/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.inc.php b/htdocs/lib/functions.inc.php index 9f50ce18830..4f298de56c3 100644 --- a/htdocs/lib/functions.inc.php +++ b/htdocs/lib/functions.inc.php @@ -3394,7 +3394,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $ $trans_colour = imagecolorallocatealpha($imgThumb, 255, 255, 255, 0); break; } - if (function_exists("imagefill")) imagefill($imgThumb, 0, 0, $trans_colour); + if (function_exists("imagefill")) imagefill($imgThumb, 0, 0, $trans_colour) or die ("Erreur lors de la création de l'image"); dolibarr_syslog("vignette: convert image from ($imgWidth x $imgHeight) to ($thumbWidth x $thumbHeight) as $extImg, newquality=$newquality"); //imagecopyresized($imgThumb, $img, 0, 0, 0, 0, $thumbWidth, $thumbHeight, $imgWidth, $imgHeight); // Insère l'image de base redimensionnée