From e46f654e9fc653818d6f89d8956f846f4a066694 Mon Sep 17 00:00:00 2001 From: John Botella Date: Tue, 3 Dec 2019 17:27:13 +0100 Subject: [PATCH] Fix deprecated image2wbmp function --- htdocs/core/lib/images.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }