Fix deprecated image2wbmp function

This commit is contained in:
John Botella 2019-12-03 17:27:13 +01:00
parent f806c0da78
commit e46f654e9f

View File

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