Re: imagecopyresized
| From: | Morgan Hughes | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: imagecopyresized | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125988@lists.php.net to get a copy of this message | ||
On Mon, 25 Nov 2002, adrian murphy@2020tourism.com wrote:
> sorry.i included the link so you can see the result
> it's difficult to explain what it looks like without including
> attachments - which is a worse idea i think!
> there are no errors it just looks bad.
> i didn't know that imagecreate() produces 8-bit images.
> this implies that with older versions of gd (< 2.x) you can't
> manipulate jpegs? gd is my only option.
> adrian
You can read and produce JPEGs with GD < 2.x, but any JPEG you read is
stripped to 8-bit, with as many colors as the reader can allocate. Any
JPEG you produce will be 8-bit as well.
GD stayed at 2.0.1 for quite a while (a year or more), which was a beta
and had some serious bugs, but now it's being maintained again, and is
up to 2.0.8... Unfortunately the PHP extension is broken and
requires specific patches, so GD 2 support probably won't be widespread
with ISPs until it's sorted out and stable... So you'll have to wait,
or look into something like ImageMagick.
--
Morgan Hughes
C programmer and highly caffeinated mammal.
kyhm@kyhm.com
ICQ: 79293356