PHPCon Poland 2024


(PECL imagick 3 >= 3.3.0)

Imagick::identifyFormatFormats a string with image details


public Imagick::identifyFormat(string $embedText): string|false

Replaces any embedded formatting characters with the appropriate image property and returns the interpreted text. See for escape sequences.

Bağımsız Değişkenler


A string containing formatting sequences e.g. "Trim box: %@ number of unique colors: %k".

Dönen Değerler

Returns format başarısızlık durumunda false döner.


Örnek 1 Imagick::identifyFormat()

= "Output of 'Trim box: %@ number of unique colors: %k' is: <br/>";
$imagick = new \Imagick(realpath("./images/artifact/mask.png"));
$output .= $imagick->identifyFormat("Trim box: %@ number of unique colors: %k");


add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top