(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::writeImagesFile — Writes frames to a filehandle
$filehandle, string $format = ?): boolWrites 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.
filehandleFilehandle where to write the images
Returns true on success.