Test whether JPEGs are supported : imagetypes « Graphics Image « PHP






Test whether JPEGs are supported

 
<?php
    $supported = imagetypes();
    if($supported & IMG_JPG) {
              echo "Jpegs are supported in this GD version";
    } else {
              echo "Jpegs are not supported.";
    }
?>
  
  








Related examples in the same category