method_exists($Gmagick,'newPseudoImage') === FALSE

9 views
Skip to first unread message

di...@progressnowaction.org

unread,
Dec 24, 2009, 1:06:57 PM12/24/09
to GMagick PHP
Want to create a "pseudo" image to auto-fit text, for example? In
IMagick you would use the newPseudoImage method. Previously thought
impossible in Gmagick, this from Vito on the dev team:

Gmagick's interface is minimal. To do something similar to the
newPseudoImage() method available in Imagick:

$gm = new Gmagick();
$gm->setSize(200, 200)
->read("caption:test")
->setImageFormat("png")
->write("pseudo_file.png");

Works like a charm.

Reply all
Reply to author
Forward
0 new messages