Fixed gd calls for windows bitmap images
This commit is contained in:
parent
cd684460ff
commit
6e64e0e7be
@ -274,7 +274,7 @@ function dol_imageResizeOrCrop($file, $mode, $newWidth, $newHeight, $src_x=0, $s
|
|||||||
imagepng($imgThumb, $imgThumbName, $newquality);
|
imagepng($imgThumb, $imgThumbName, $newquality);
|
||||||
break;
|
break;
|
||||||
case 4: // Bmp
|
case 4: // Bmp
|
||||||
image2wmp($imgThumb, $imgThumbName);
|
image2wbmp($imgThumb, $imgThumbName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -534,7 +534,7 @@ function vignette($file, $maxWidth = 160, $maxHeight = 120, $extName='_small', $
|
|||||||
// Not supported by PHP GD
|
// Not supported by PHP GD
|
||||||
break;
|
break;
|
||||||
case IMAGETYPE_WBMP: // 15
|
case IMAGETYPE_WBMP: // 15
|
||||||
image2wmp($imgThumb, $imgThumbName);
|
image2wbmp($imgThumb, $imgThumbName);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user