AndrewFerrara Posted January 28, 2011 Share Posted January 28, 2011 Need to change the letter spacing.. help? $tag = 'www.xxxxxx.com'; $text_draw->setFontSize(; $text_draw->setFillColor("black"); $output_image->annotateImage($text_draw, 123, 34, 0, $tag); $text_draw->setFillColor("white"); $output_image->annotateImage($text_draw, 122, 33, 0, $tag); Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 28, 2011 Share Posted January 28, 2011 can you show us more code, and especially the class code for those objects? Quote Link to comment Share on other sites More sharing options...
AndrewFerrara Posted January 28, 2011 Author Share Posted January 28, 2011 <?php $tag = 'somewhere.com'; $output_image = new Imagick(); $output_image->newImage(300, 34, '#000000'); $text_draw = new ImagickDraw(); $text_draw->setFont("files/calibri.ttf"); //path to font file $text_draw->setFontSize(; $text_draw->setFillColor("black"); $output_image->annotateImage($text_draw, 123, 34, 0, $tag); $text_draw->setFillColor("white"); $output_image->annotateImage($text_draw, 122, 33, 0, $tag); $output_image->setImageFormat('png'); header('Content-type: image/png'); echo $output_image; ?> Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 28, 2011 Share Posted January 28, 2011 wow, neat. a quick google lead me to Imagickdraw::settextkerning posted by a contributor on this page: http://php.net/manual/en/book.imagick.php Quote Link to comment Share on other sites More sharing options...
AndrewFerrara Posted January 28, 2011 Author Share Posted January 28, 2011 Imagickdraw::settextkerning is not in the documentation hosted at http://php.net/manual/en/class.imagickdraw.php Quote Link to comment Share on other sites More sharing options...
jcbones Posted January 28, 2011 Share Posted January 28, 2011 As of release version 2.3.0RC2 the following methods not listed here are also available for use: Currently unstable releases (2.3.0+): * Imagick::getImageMimeType * Imagick::writeimagefile * Imagick::writeimagesfile * Imagick::resetimagepage * Imagick::setimageclipmask * Imagick::getimageclipmask * Imagick::animateimages * Imagick::recolorimage * Imagick::floodfillpaintimage * Imagick::opaquepaintimage * Imagick::transparentpaintimage * Imagick::decipherimage * Imagick::encipherimage * Imagick::getimagealphachannel * Imagick::getimagechanneldistortions * Imagick::getimagegravity * Imagick::setimagegravity * Imagick::remapimage * Imagick::exportimagepixels * Imagick::getimagechannelkurtosis * Imagick::functionimage * Imagick::importImagePixels * Imagick::sparseColorImage * Imagick::deskewImage * Imagick::segmentImage * Imagickdraw::gettextkerning * Imagickdraw::settextkerning * Imagickdraw::gettextinterwordspacing * Imagickdraw::gettextinterwordspacing * ImagickPixel::getColorValueQuantum * ImagickPixel::setColorValueQuamtum * ImagickPixel::getIndex * ImagickPixel::setIndex Latest stable (2.2.2): * Imagick::getImageChannelRange * Imagick::setImageAlphaChannel * Imagick::mergeImageLayers() * Imagick::setPointsize() * Imagick::getPointsize() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.