Merge pull request #12528 from frederic34/patch-8

image2wbmp() is deprecated as of PHP 7.3.0
This commit is contained in:
Laurent Destailleur 2019-11-28 12:19:32 +01:00 committed by GitHub
commit 874f5b7005
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -281,7 +281,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;
}
@ -584,7 +584,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;
}