Imagick::writeImagesFile

Writes frames to a filehandle

Description

public bool Imagick::writeImagesFile(resource $filehandle, string $format = ?)

Writes all image frames into an open filehandle. This method can be used to write animated gifs or other multiframe images into open filehandle. This method is available if Imagick has been compiled against ImageMagick version 6.3.6 or newer.

Parameters

filehandle

Filehandle where to write the images.

format

The image format. The list of valid format specifiers depends on the compiled feature set of ImageMagick, and can be queried at runtime via Imagick::queryFormats.

Return Values

Returns true on success.

See Also

  • Imagick::queryFormats