Re: Rotating image using imagerotate creates large black area on image
| From: | Matthew Weier O'Phinney | Date: | Mon, 25 Oct 2004 01:15:22 +0000 |
| Subject: | Re: Rotating image using imagerotate creates large black area on image | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200205@lists.php.net to get a copy of this message | ||
* Brent Clements <bclem@imaginative-enterprises.com>:
> I am working on some images and I am having some problems with image =
> rotate.
>
> I am using imagerotate($im, "-90", 0); but when I display the image, the =
> first 1/4 of the image has a large black splotch from left/top to =
> right/bottom
It might be because the second argument to imagerotate() is supposed to
be a floating decimal, not a string. Try:
imagerotate($im, -90, 0);
and see what happens.
--
Matthew Weier O'Phinney | mailto:matthew@garden.org
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org