Bug #18252 Updated: angle in ImageTTFText now works clockwise

From: Date: Thu, 18 Jul 2002 17:23:28 +0000
Subject: Bug #18252 Updated: angle in ImageTTFText now works clockwise
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14541@lists.php.net to get a copy of this message
ID: 18252 Updated by: dpetrov@nchcapital.com Reported By: dpetrov@nchcapital.com -Status: Closed +Status: Open Bug Type: GD related Operating System: FreeBSD 4.6 PHP Version: 4.2.1 New Comment: I think the bug should be reopened, since it is reproducable. Previous Comments: ------------------------------------------------------------------------ [2002-07-15 13:28:08] dpetrov@nchcapital.com I made further tests - even installed lastest snaphot and also 4.2.1 on a completely different computer (all other things - GD, Freetype, PNG, Jpeg were installed from scratch also), and I still have same problem. I also tried to compile latest snapshot with bundled GD, and tried it with and without --enable-gd-native-ttf. So, the bug is easily reproduced - at least under FreeBSD 4.6. ------------------------------------------------------------------------ [2002-07-11 09:00:18] dpetrov@nchcapital.com Yes, I used the latest snapshot (yesterday's). I tried it both with GD 2.0.1 and with bundled version (2.0 compatible). I guess the problem is somewhere else. I am going to look into patches applied to GD on FreeBSD platform. ------------------------------------------------------------------------ [2002-07-10 18:20:36] sniper@php.net Check first what version you have for GD in phpinfo() output. And did you mean with latest version this snapshot: http://snaps.php.net/php4-latest.tar.gz ------------------------------------------------------------------------ [2002-07-10 17:31:37] dpetrov@nchcapital.com I installed the latest version of PHP - still same problem. Apparently, it is somehow related to versions of GD/Freetype I have or it is something to do with the configuration. ------------------------------------------------------------------------ [2002-07-09 19:30:39] sniper@php.net <?php $text = ". Testing ..."; $im = ImageCreate(600,600); $blue = ImageColorAllocate($im, 128,128,255); $black = ImageColorAllocate($im, 0,0,0); $yel = ImageColorAllocate($im, 255,255,0); $wh = ImageColorAllocate($im, 255,255,255); $gr = ImageColorAllocate($im, 0,255,0); imageFilledRectangle($im, 0, 0, 599, 159, $blue); for ($a=0; $a <= 180 ; $a=$a+20) { ImageTtfText($im, 12, $a, 300, 300, $wh, "/usr/share/fonts/default/TrueType/arial.ttf", $text); } header("Content-Type: image/png"); ImagePng($im); ImageDestroy($im); ?> This script produces nice half of a circle.. No bugs. In your setup it will draw the lower half of the cirlce. Please try the snapshot. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/18252 -- Edit this bug report at http://bugs.php.net/?id=18252&edit=1

« previous php.bugs (#14541) next »