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; }