trip272 Posted February 12, 2007 Share Posted February 12, 2007 Heres what I'm up against. I have a form where someone can upload an image. It then directs to a php called validate.php. I want the image to upload and upon uploading resize to specific dimensions and replace the previous uploaded file. I've looked up alot of different things but I always end up pretty confused. I'm somewhat a novice at php. Could anyone give me a hand? Quote Link to comment Share on other sites More sharing options...
redarrow Posted February 12, 2007 Share Posted February 12, 2007 look up gd as all the functions and statements are there ok. Quote Link to comment Share on other sites More sharing options...
fert Posted February 12, 2007 Share Posted February 12, 2007 http://us2.php.net/manual/de/function.imagecopyresampled.php Quote Link to comment Share on other sites More sharing options...
trip272 Posted February 12, 2007 Author Share Posted February 12, 2007 Ok I see. I put in that example code and it displays the image resized. Is there anyway to get it to actually save that and overwrite the existing file? Quote Link to comment Share on other sites More sharing options...
Jessica Posted February 12, 2007 Share Posted February 12, 2007 Use the http://us3.php.net/manual/en/function.imagepng.php, imagegif, or imagejpeg functions. Quote Link to comment Share on other sites More sharing options...
trip272 Posted February 12, 2007 Author Share Posted February 12, 2007 Thanks! This worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.