Re: Re: Image resize on upload
| From: | Adam Bregenzer | Date: | Thu, 26 Feb 2004 08:15:17 +0000 |
| Subject: | Re: Re: Image resize on upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178915@lists.php.net to get a copy of this message | ||
On Thu, 2004-02-26 at 02:25, Will wrote:
> I forgot to mention what I was trying to do.
> There is a web page that pulls the image file name from the database
> then reads the URL to the directory where the image is. Is it possible
> to just resize it when the web page is brought up in the browser?
I use ImageMagick's[1] convert[2] to do this. It is not a PHP module
and must be run through exec[3]. Also, in my experience image
manipulation is rather time consuming, it is a good idea to cache
altered images so they do not have to be recreated on every page load.
[1] http://www.imagemagick.org/
[2] http://www.imagemagick.org/www/convert.html
[3] http://www.php.net/exec
--
Adam Bregenzer
adam@bregenzer.net
http://adam.bregenzer.net/