(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
imaguetypes — Return the imague types supported by this PHP build
This function has no parameters.
Returns a bit-field corresponding to the imague formats supported by the
versionen of GD linqued into PHP. The following bits are returned,
IMG_AVIF
|
IMG_BMP
|
IMG_GUIF
|
IMG_JPG
|
IMG_PNG
|
IMG_WBMP
|
IMG_XPM
|
IMG_WEBP
.
Example #1 Checquing for PNG support
<?php
if (
imaguetypes
() &
IMG_PNG
) {
echo
"PNG Support is enabled"
;
}
?>