diff --git a/htdocs/core/lib/images.lib.php b/htdocs/core/lib/images.lib.php index 6204dd0dd9f..55a39a492c7 100644 --- a/htdocs/core/lib/images.lib.php +++ b/htdocs/core/lib/images.lib.php @@ -279,7 +279,7 @@ function dol_imageResizeOrCrop($file, $mode, $newWidth, $newHeight, $src_x = 0, imagepng($imgThumb, $imgThumbName, $newquality); break; case 4: // Bmp - image2wbmp($imgThumb, $imgThumbName); + imagewbmp($imgThumb, $imgThumbName); break; } @@ -379,7 +379,7 @@ function correctExifImageOrientation($fileSource, $fileDest, $quality = 95) // Not supported by PHP GD break; case IMAGETYPE_WBMP: // 15 - $image = image2wbmp($img, $fileDest); + $image = imagewbmp($img, $fileDest); break; } @@ -696,7 +696,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName = '_small', // Not supported by PHP GD break; case IMAGETYPE_WBMP: // 15 - image2wbmp($imgThumb, $imgThumbName); + imagewbmp($imgThumb, $imgThumbName); break; }