Re: image manipulation with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux