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? Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/ 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. Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/#findComment-183081 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 Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/#findComment-183082 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? Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/#findComment-183095 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. Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/#findComment-183099 Share on other sites More sharing options...
trip272 Posted February 12, 2007 Author Share Posted February 12, 2007 Thanks! This worked Link to comment https://forums.phpfreaks.com/topic/38226-solved-resizing-an-image/#findComment-183112 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.