PHP/Graphics Image/imagetypes — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (1 версия) |
(нет различий)
|
Текущая версия на 10:05, 26 мая 2010
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>