Okay, is there anyone who is aware of a script which: When someone uploads a photograph to my server, it changes the size to a specific size automatically, without loosing the quality of the photograph? I have a script at the moment which changes the image to a specific size depending on the memory size of the image, and some people are loading up images that are 1500x1000 pixels! I want all of the images loaded to be a specific size and good quality. I've heard of GD library but my host doesn't use this. Any solutions, ideas or scripts anyone? Darren
Shawn, sorry I'm an amateur at PHP What do you mean by 'it's built into PHP if you have the image() functions available' Darren
The image functions can be compiled into PHP: http://us2.php.net/manual/en/ref.image.php If you run a phpinfo() function, it should tell you what you have available to you in your version of PHP.
You will ALWAYS get better image reproduction from proper image software such as Photoshop, however PHP will do a very good job too. For free "plug and play" software consider one of the many Gallery scripts. I use a free script called.... Gallery on a tennis site - feel free to take a look. Sarah
Thanks Sarah.. helpful as usual! The photographs are part of the advertisement, so a gallery wouldn't do what I am wanting to do with the photographs that owners upload BUT I could offer this gallery for anyone who has more than 4 photographs and wants to link to the gallery from the advertisement. Darren
You can always take in the ad, then getImageSize() and when you show it on the page just set the dimensions to what you want. BTW: have you heard that nortons firewall blocks images with "ad" in the path. Infact, it's got a list as long as your arm of words it doesn't like and you need to be a total geek to find out where to turn it off. Save ads in a folder named pix or something to differentiate from regular images. Sarah
Sarah, I don' think any of the image paths have 'ad' in them, but I will have a good look to make sure - might explain why a button owners have to click to update their advertisement cannot be viewed with Norton installed! Darren
There are some good, simple examples that you can build on here: http://us2.php.net/manual/en/function.imagecopyresampled.php - Bert http://www.tropicrentals.com