Re: image manipulation with php

From: Date: Tue, 29 Aug 2006 15:20:38 +0000
Subject: Re: image manipulation with php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241187@lists.php.net to get a copy of this message
Ross wrote: > I have an saved images I output with this... > > > <img src="includes/viewphoto.php?id=<?=$photo?>"> > > > I want to use getimagesize() to get the height and width of the image and if > it is above a certain size then scale/ reduce it. > > The problems are > > (i) using getimage() without a url just my viewphoto.php script why is this a problem? getimagesize() just needs a path to the image. given that this is all new to you you might consider that storing the image data directly in the DB is best left to crazy fools who really know where their towels are at. > > (ii) comparing and reducing the file RTFM or STFW - there are lots of examples related to image resampling/thumbnailing/etc and even more readymade scripts that do more or less what you want. > > Ross >

« previous php.general (#241187) next »