Re: Thumbnails not generating
| From: | Jason Wong | Date: | Mon, 14 Apr 2003 15:39:50 +0000 |
| Subject: | Re: Thumbnails not generating | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143791@lists.php.net to get a copy of this message | ||
On Monday 14 April 2003 20:45, Chris Blake wrote:
> Greetings learned PHP(eople),
>
> Objective : Create thumbnail from single image
> Please advise if I`m missing some vital points on creating thumbnails.
Well I would suggest taking things slowly and work it out step by step.
First, your subject suggests that the image is not being generated. Figure out
some code to create a thumbnail and write to file. Once you've got that
working it's a simple matter of changing the output to STDOUT (ie echo() it
instead of writing to file).
Second, you cannot have html and output an image on the same page as you're
trying to do. The part that outputs the image needs to be in a separate php
script and called from your main html output script. There are plenty of
examples in the archives on the hows and whys of this.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A university faculty is 500 egotists with a common parking problem.
*/