PHP 8.4.2 Released!

Imagick::getImageFormat

(PECL imagick 2, PECL imagick 3)

Imagick::getImageFormatReturns the format of a particular image in a sequence

Description

public Imagick::getImageFormat(): string

Returns the format of a particular image in a sequence.

Parameters

This function has no parameters.

Return Values

Returns a string containing the image format on success.

Errors/Exceptions

Throws ImagickException on error.

add a note

User Contributed Notes 1 note

up
0
orrd101 at yahoo dot com
11 years ago
Use Imagick::queryFormats() to get a list of possible format names that might be returned by this function.
To Top