#21712 [NEW]: Using ImageCreateFromJPEG with ImageTTFText causes type to appear jagged

From: Date: Fri, 17 Jan 2003 14:47:03 +0000
Subject: #21712 [NEW]: Using ImageCreateFromJPEG with ImageTTFText causes type to appear jagged
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30353@lists.php.net to get a copy of this message
From: gkopp@ideastar.com Operating system: RedHat 6.1 PHP version: 4.3.0 PHP Bug Type: GD related Bug description: Using ImageCreateFromJPEG with ImageTTFText causes type to appear jagged The following code creates a new JPEG image. It worked fine under PHP 4.2.3, but since the upgrade to PHP 4.3.0, the type now appears jagged and in some cases with smaller type, unreadable: <? Header("Content-type: image/jpeg"); $size = 36; $x = 5; $y = 50; $imgname = "bluebox.jpg"; $im = ImageCreateFromJPEG ($imgname); /* Attempt to open */ $color = ImageColorAllocate ($im, 255, 255, 255); $font = "FRAMDCN.TTF"; ImageTTFText ($im, $size, 0, $x, $y, $color, $font, $label); ImageJpeg($im,'',100); ImageDestroy($im); ?> ImageCreateFromPNG gives me the same results. If replace the ImageCreateFromJPEG() with just an ImageCreate and give it a solid color, it looks fine. It seems to only be affected when I start the image with a template image. -- Edit bug report at http://bugs.php.net/?id=21712&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21712&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21712&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21712&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21712&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21712&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21712&r=support Expected behavior: http://bugs.php.net/fix.php?id=21712&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21712&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21712&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21712&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21712&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21712&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21712&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21712&r=gnused

« previous php.bugs (#30353) next »