#21712 [Opn->Fbk]: Using ImageCreateFromJPEG with ImageTTFText causes type to appear jagged
| From: | iliaa@php.net | Date: | Fri, 17 Jan 2003 14:48:28 +0000 |
| Subject: | #21712 [Opn->Fbk]: Using ImageCreateFromJPEG with ImageTTFText causes type to appear jagged | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30354@lists.php.net to get a copy of this message | ||
ID: 21712
Updated by: iliaa@php.net
Reported By: gkopp@ideastar.com
-Status: Open
+Status: Feedback
Bug Type: GD related
Operating System: RedHat 6.1
PHP Version: 4.3.0
New Comment:
Are you using bundled or non-bundled GD library? In case of the latter,
what version of GD library are you using?
Previous Comments:
------------------------------------------------------------------------
[2003-01-17 08:47:03] gkopp@ideastar.com
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 this bug report at http://bugs.php.net/?id=21712&edit=1