PHP Doku:: Reads image from a binary string - gmagick.readimageblob.html

Verlauf / Chronik / History: (6) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzBildverarbeitung und -generierungGmagickThe Gmagick classGmagick::readimageblob

Ein Service von Reinhard Neidl - Webprogrammierung.

The Gmagick class

<<Gmagick::readimage

Gmagick::readimagefile>>

Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobReads image from a binary string

Beschreibung

public void Gmagick::readimageblob ( string $imageContents [, string $filename ] )

Reads image from a binary string.

Parameter-Liste

imageContents

Content of image

filename

The image filename.

Rückgabewerte

The Gmagick object on success

Fehler/Exceptions

Wirft bei einem Fehler eine GmagickException.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
MPLong
28.06.2010 20:29
If you want to be able to do the opposite (output your gmagick object to a blob), then use getImageBlob() like this:

$outputstring = $im->getImageBlob();

This is apparently undocumented here, but since the entire library is ported/modeled on the imagemagick library, it makes sense that it uses the same name as imagemagick.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)