note 52992 deleted from function.imagettftext by betz

From: Date: Wed, 15 Jun 2005 14:22:11 +0000
Subject: note 52992 deleted from function.imagettftext by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-90462@lists.php.net to get a copy of this message
Note Submitter: gauravjassal at gmail dot com ---- Hello ALL I just used this Code to Create a Customized Shoppind Cart. Every thing is Fine but on Writting Text on the Image the quality of the Graphic Gets Very Low . Is there any ay increase the Quality of the IMAGE i Create using this Code . Gaurav gauravjassal@gmail.com <?php header("Content-Type: image/jpeg"); $im1 = @imagecreatefromjpeg($ppath); include('hex1.php'); // Allocate the colors white and black $font_rgb = hex_to_rgb($colour_1); $black = ImageColorAllocate($im1, $font_rgb['red'], $font_rgb['green'], $font_rgb['blue']); // Print and destroy the image $character = $text_1; $font = "fonts/Arial" . ".ttf"; //ImageString($im1, $fontsize_1, , , $character, $black); ImageTTFText($im1, $fontsize_1, 0, $myx_1-25, $myy_1+15, $black, $font, $text_1); //$myy_1 //$my_y Imagejpeg($im1); ImageDestroy($im1); ?>

« previous php.notes (#90462) next »