From 6e64e0e7be57b5831bbdce4e1655316a43c1d6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Thu, 5 Sep 2013 17:56:28 +0200 Subject: [PATCH] Fixed gd calls for windows bitmap images --- htdocs/core/lib/images.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/lib/images.lib.php b/htdocs/core/lib/images.lib.php index 7dea7357535..4e0a8e86789 100644 --- a/htdocs/core/lib/images.lib.php +++ b/htdocs/core/lib/images.lib.php @@ -274,7 +274,7 @@ function dol_imageResizeOrCrop($file, $mode, $newWidth, $newHeight, $src_x=0, $s imagepng($imgThumb, $imgThumbName, $newquality); break; case 4: // Bmp - image2wmp($imgThumb, $imgThumbName); + image2wbmp($imgThumb, $imgThumbName); break; } @@ -534,7 +534,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $ // Not supported by PHP GD break; case IMAGETYPE_WBMP: // 15 - image2wmp($imgThumb, $imgThumbName); + image2wbmp($imgThumb, $imgThumbName); break; }