Prev
MagickWand For PHP
Manual


Next

MagickGetImagesBlob

MagickGetImagesBlob -- returns the current active image sequence as a BLOB

Description

string MagickGetImagesBlob( MagickWand mgck_wnd )

Returns the BLOB (Binary Large OBject) of the combined image sequence of the MagickWand, or explicit FALSE (suitable for === testing), if an error occurred. The format of the FIRST image in the MagickWand determines the format of the returned blob (GIF, JPEG, PNG, etc.). It is recommended that you do NOT use this function, as the returned BLOB is actually duplicated to PHP's internal memory. So, at least for a short period of time, there will be 2 identical BLOBs consuming PHP's memory. If you want to output the BLOB of the image sequence, use MagickEchoImagesBlob(), and if you want to dump the image sequence to a file(s), use MagickWriteImages() or MagickWriteImagesFile(). To return a different image format, use MagickSetImageFormat() on the first image: MagickSetImageIndex( $mgck_wnd, 0 ); MagickSetImageFormat( $mgck_wnd, 'GIF' ); Returns TRUE on success, FALSE if an error occurred. NOTE: Some image formats do not permit multi-image (multi-frame) images (e.g. JPEG). In this instance, just the first image of the sequence is returned as a BLOB.


A description of each parameter follows:

mgck_wnd A MagickWand resource


Prev
MagickGetImageWidth
Up Next
MagickGetInterlaceScheme