Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobLit une image depuis une chaîne binaire

Description

public Gmagick::readimageblob(string $imageContents, string $filename = ?): Gmagick

Lit une image depuis une chaîne binaire.

Liste de paramètres

imageContents

Contenu de l'image.

filename

Le nom du fichier image.

Valeurs de retour

Un objet Gmagick en cas de succès.

Erreurs / Exceptions

Émet une exception GmagickException en cas d'erreur.

add a note add a note

User Contributed Notes 1 note

up
4
MPLong
13 years ago
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.
To Top