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
----- Original Message -----
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 6:26 PM
Subject: Re: [PHP] imagecopyresized


> On Tuesday 26 November 2002 02:10, [EMAIL PROTECTED] wrote:
> > hi
> > i'm having problems resizing jpegs.
> > here's an e.g. using manual example.
> > code used :
> > <?
> > $new_w=395;
> > $new_h=297;
> > header("Content-type: image/jpeg");
> > $dst_img=ImageCreate($new_w,$new_h);
> > $src_img=ImageCreateFromJpeg($name);
> >
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),
> >ImageSY($src_img)); ImageJpeg($dst_img);
> > ?>
> >
> > and the result can be seen here.
> > http://www.sitestogo.biz/temp/test.php
>
> You may get a better response if you actually copy and paste the error
message
> or whatever. If that's not possible at least give a brief description as
to
> what the problem is. Having to make people go through extra steps to help
you
> is not a very good idea.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> Too much is just enough.
> -- Mark Twain, on whiskey
> */
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to