略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Imagick::identifyFormat

2024-12-22

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");

?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/imagick.identifyformat.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3