PHP/Graphics Image/imagetypes

Материал из Web эксперт
Перейти к: навигация, поиск

Test whether JPEGs are supported

   <source lang="html4strict">

<?php

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

?>

 </source>