array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.gd-info.php', 1 => 'gd_info', ), 'up' => array ( 0 => 'ref.image.php', 1 => 'GD ve Görüntü İşlevleri', ), 'prev' => array ( 0 => 'ref.image.php', 1 => 'GD ve Görüntü İşlevleri', ), 'next' => array ( 0 => 'function.getimagesize.php', 1 => 'getimagesize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/image/functions/gd-info.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
gd_info — Kurulu GD kütüphanesi hakkında bilgi verir
Bu işlevin bağımsız değişkeni yoktur.
Bir ilişkisel dizi döner.
Öznitelik | Anlamı |
---|---|
GD Version | Kurulu libgd sürümünü içeren
string türünde bir değer. |
FreeType Support | bool türünde bir değer.
FreeType desteği varsa true . |
FreeType Linkage | FreeType desteğinin nasıl sağlandığını açıklayan
string türünde bir değer. Olası değerler: 'with freetype'
(FreeType ile), 'with TTF library' (TTF kütüphanesi ile) ve 'with
unknown library' (bilinmeyen bir kütüphane ile). Bu eleman sadece
FreeType Support elemanının değeri true ise
anlamlıdır. |
GIF Read Support | bool türünde bir değer. GIF
görüntüleri okuma desteği varsa true . |
GIF Create Support | bool türünde bir değer. GIF
görüntüleri oluşturma desteği varsa true . |
JPEG Support | bool türünde bir değer. JPEG
desteği varsa true . |
PNG Support | bool türünde bir değer. PNG
desteği varsa true . |
WBMP Support | bool türünde bir değer. WBMP
desteği varsa true . |
XPM Support | bool türünde bir değer. XPM
desteği varsa true . |
XBM Support | bool türünde bir değer. XBM
desteği varsa true . |
WebP Support | bool value.
WebP desteği varsa true . |
AVIF Support | bool türünde bir değer.
AVIF desteği varsa true .
PHP 8.1.0 ve sonrasında kullanılabilir. |
Örnek 1 gd_info() kullanımı
<?php
var_dump(gd_info());
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
array(14) { ["GD Version"]=> string(26) "bundled (2.1.0 compatible)" ["FreeType Support"]=> bool(true) ["FreeType Linkage"]=> string(13) "with freetype" ["GIF Read Support"]=> bool(true) ["GIF Create Support"]=> bool(true) ["JPEG Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XPM Support"]=> bool(true) ["XBM Support"]=> bool(true) ["WebP Support"]=> bool(true) ["BMP Support"]=> bool(true) ["AVIF Support"]=> bool(false) ["TGA Read Support"]=> bool(true) }