Fixed gd calls for windows bitmap images

This commit is contained in:
Raphaël Doursenaud 2013-09-05 17:56:28 +02:00
parent cd684460ff
commit 6e64e0e7be

View File

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