laide234 Posted July 16, 2006 Share Posted July 16, 2006 Hello all. I am new to PHP and am in need of some help.I am working with an image upload script.What I want is for users to be able to upload, say [color=red]image.jpg[/color].However I want the width of [color=red]image.jpg[/color] to be set to 240 pixels, and for a thumbnail of [color=red]image.jpg[/color], which I shall call [color=red]image_t.jpg[/color] to be also created in the upload folder and set to a width of 75 pixels.Please help. Quote Link to comment https://forums.phpfreaks.com/topic/14759-php-image-upload/ Share on other sites More sharing options...
GingerRobot Posted July 16, 2006 Share Posted July 16, 2006 There are two tutorials for this sort of thing on this website:http://www.phpfreaks.com/tutorials/36/0.phphttp://www.phpfreaks.com/tutorials/78/0.phpIve not tried them myself, but take a look :) Quote Link to comment https://forums.phpfreaks.com/topic/14759-php-image-upload/#findComment-58900 Share on other sites More sharing options...
laide234 Posted July 16, 2006 Author Share Posted July 16, 2006 Thanks a bunch GingerRobot!! ;DThose links helped me figure out how to ensure that two separately named copies of the image got to server. Now if someone can just help me figure out how to set the widths in pixels. Note: These may be GIFs, JPGs, or PNGs. I think the resizing differs for each.Thanks again GR! ;) Quote Link to comment https://forums.phpfreaks.com/topic/14759-php-image-upload/#findComment-58910 Share on other sites More sharing options...
litebearer Posted July 16, 2006 Share Posted July 16, 2006 This might be of some help...http://www.nstoia.com/toh/technical/imageresize/index.phpLite... Quote Link to comment https://forums.phpfreaks.com/topic/14759-php-image-upload/#findComment-58911 Share on other sites More sharing options...
laide234 Posted July 16, 2006 Author Share Posted July 16, 2006 Three cheers for litebearer!!! ;D ;D ;DThank you. Your code was exactly what I was looking for. Simple and straight to the point. Quote Link to comment https://forums.phpfreaks.com/topic/14759-php-image-upload/#findComment-58919 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.