#21470 [Com]: add imagecopyrotated from latest gd
| From: | jmaki at andrew dot cmu dot edu | Date: | Tue, 24 Jun 2003 14:43:00 +0000 |
| Subject: | #21470 [Com]: add imagecopyrotated from latest gd | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42443@lists.php.net to get a copy of this message | ||
ID: 21470
Comment by: jmaki at andrew dot cmu dot edu
Reported By: gid at gifpaste dot net
Status: Open
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.3.0
Assigned To: pajoye
New Comment:
I'd like to add my comments to this bug (to pajoye: it
does say "feature request" under category, so this does
seem to be an appropriate place for this)
The built into non-php-gd version of ImageCopyRotated
is nasty. It has really bad jagged edges and whatnot,
and doesn't seem to do any cubic/linear sampling of the
image at all. I think it'd be nice if somebody (maybe
the author of ImageRotate?) could somehow alter the
ImageRotate code to work with ImageCopyRotate.
It's not as trivial as it sounds -- one can't just
write a wrapper to ImageRotate where a new image is
allocated for the caller -- ImageCopyRotate makes the
distinction that if one is rotating an image on top of
another image, ImageRotate fills the background with a
given color -- ImageCopyRotated will let the
destination image show through the transparent portions
of the source, if any. I need such functionality for my
app, and I can't seem to find a way with PHP without
ImageCopyRotated.
BTW, I did port the non-php-libgd version to PHP just
for a try, and like I said before, the rotated image it
makes is nasty. Somebody needs to make it use cubic or
linear sampling like ImageRotate for better results...
Previous Comments:
------------------------------------------------------------------------
[2003-01-07 19:24:32] gid at gifpaste dot net
the imagerotate() function is totally different from the
imageCOPYrotated() function that I am referring to.
imagerotate rotates an image
imageCOPYrotate copys an image onto another image while rotating the
image that we are copying. As far as I know, php doesn't allow access
to the imageCOPYrotated function in gd > 2.0.8
------------------------------------------------------------------------
[2003-01-07 17:35:55] pajoye@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
Hello,
We strongly recommand the use of the bundled GD, which includes
imagerotate.
Thank's for your report.
pierre
------------------------------------------------------------------------
[2003-01-06 14:14:23] gid at gifpaste dot net
http://www.boutell.com/gd/ has a patch against php 4.2.3
that adds the
imagecopyrotated() function from the gdImageCopyRotated() function that
was added in gd 2.0.8. I would be nice if this were a part of the php
tree.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21470&edit=1