Imagick::queryFormats

(PECL imagick 2.0.0)

Imagick::queryFormatsReturns formats supported by Imagick

Beskrivelse

array Imagick::queryFormats ([ string $pattern = "*" ] )

Returns formats supported by Imagick.

Parametre

pattern

Returnerings Værdier

Returns an array containing the formats supported by Imagick.

Fejl/Undtagelser

Throws ImagickException on error.

add a note add a note

User Contributed Notes 1 note

up
0
kawewong at gmail dot com
2 years ago
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.
To Top