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 
> 

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

Reply via email to