Re: Quick Question
| From: | Jason Wong | Date: | Wed, 24 Jul 2002 07:50:25 +0000 |
| Subject: | Re: Quick Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-109272@lists.php.net to get a copy of this message | ||
On Wednesday 24 July 2002 15:48, Nicholas Mercier wrote:
> I'm currently developing a Remote CMS for a site.
>
> I'm working on the image upload and want to create a smaller thumbnail type
> image (thought >200x>180 instead of >50x>50)
> I know I'm going to need either imagecopyresize() or imagecopyresample(). I
> don't know which would be better for this purpose or what the main
> difference is in terms of quality and run time. Any comments or assistance
> is gladly welcome.
imagecopyresample() gives better results but probably takes a tad longer to
perform. Presumably your thumbnails will be produced on a one-off basis (ie
not generated on-the-fly each time it is needed) so the extra time taken by
using imagecopyresample() is more than made up for by the better quality.
Of course the best thing is to try both and see which is better for your
needs.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Did you know that if you took all the economists in the world and lined
them up end to end, they'd still point in the wrong direction?
*/