Imagick::identifyFormat

(PECL imagick 3 >= 3.3.0)

Imagick::identifyFormat画像の詳細情報で文字列をフォーマットする

説明

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

埋め込まれたフォーマット文字を適切な画像プロパティに置き換え、解釈されたテキストを返します。エスケープシーケンスについては http://www.imagemagick.org/script/escape.php を参照してください。

パラメータ

embedText

フォーマットシーケンスを含む文字列。例: "Trim box: %@ number of unique colors: %k"。

戻り値

フォーマットされた文字列を返します。失敗した場合に 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");

?>

add a note

User Contributed Notes

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