Imagick::identifyFormat

(PECL imagick 3 >= 3.3.0)

Imagick::identifyFormatDescription

説明

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

Replaces any embedded formatting characters with the appropriate image property and returns the interpreted text. See http://www.imagemagick.org/script/escape.php for escape sequences.

パラメータ

embedText

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

戻り値

Returns format失敗した場合に false を返します.

例1 Imagick::identifyFormat()

<?php
        $output 
"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");

?>

関連キーワード:  Description, Imagick, identifyFormat, string, embedText, formatting, sequences, escape, www, format