The pattern argument is case sensitive. Example:
<?php
$input = \Imagick::queryformats('PNG*');
?>
The PNG* will be included PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8
(Reference https://www.geeksforgeeks.org/php-imagick-queryformats-function/ )
If you enter png* then it will be return nothing.
PHP.mk документација
Imagick::queryFormats
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
imagick.queryformats.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
imagick.queryformats.php
Imagick::queryFormats
Референца за `imagick.queryformats.php` со подобрена типографија и навигација.
Imagick::queryFormats
(PECL imagick 2, PECL imagick 3)
Imagick::queryFormats — Returns formats supported by Imagick
= NULL
Returns formats supported by Imagick.
Параметри
pattern-
Вратени вредности
Returns an array containing the formats supported by Imagick.
Errors/Exceptions
Фрла ImagickException при грешка.
Примери
Пример #1 Imagick::queryFormats()
<?php
function render() {
$output = "";
$input = \Imagick::queryformats();
$columns = 6;
$output .= "<table border='2'>";
for ($i=0; $i < count($input); $i += $columns) {
$output .= "<tr>";
for ($c=0; $c<$columns; $c++) {
$output .= "<td>";
if (($i + $c) < count($input)) {
$output .= $input[$i + $c];
}
$output .= "</td>";
}
$output .= "</tr>";
}
$output .= "</table>";
return $output;
}
?>Белешки од корисници 1 белешка
Пример #1 Конвертирај WebP слика во jpeg слика користејќи ¶
пред 4 години