From:             [EMAIL PROTECTED]
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

Reply via email to