ID:               21712
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: RedHat 6.1
 PHP Version:      4.3.0
 New Comment:

I've tried to duplicate the problem you've described using PHP 4.3.0
using bundled GD and PHP 4.2.3 using standard GD. Both produce
absolutely identical images with the TTF (arial) font that I've used.
What version of freetype library are you using and if possible can you
put the 'good' & 'bad' image online for comparison reasons.


Previous Comments:
------------------------------------------------------------------------

[2003-01-17 12:59:10] [EMAIL PROTECTED]

They are equal. Basically, this code takes a template image, and places
some dynamic text on top of it. It's used to make custom header
graphics for a site, without the need to create new images in
Photoshop, etc.

------------------------------------------------------------------------

[2003-01-17 12:39:27] [EMAIL PROTECTED]

Are the dimentions of the 'source' image greater, less then or equal to
the size of the 'destination' image?

------------------------------------------------------------------------

[2003-01-17 09:18:20] [EMAIL PROTECTED]

I assume the bundled library. Although the unbundled library did exist
on this machine before I compiled the new PHP. And it was version
2.0.1.

------------------------------------------------------------------------

[2003-01-17 08:48:28] [EMAIL PROTECTED]

Are you using bundled or non-bundled GD library? In case of the latter,
what version of GD library are you using?

------------------------------------------------------------------------

[2003-01-17 08:47:03] [EMAIL PROTECTED]

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

Reply via email to