gple Posted September 29, 2007 Share Posted September 29, 2007 I have a form which enters information to the DB and one of the fields is to upload an image. The image is a decent size (lets say (800x400). Is there anything I can write so that the image gets uploaded (800x400) and a smaller image gets uploaded as well (100X50). So one image is uploaded but two get put into the directory at different sizes. Quote Link to comment https://forums.phpfreaks.com/topic/71158-image-sizing/ Share on other sites More sharing options...
AndyB Posted September 29, 2007 Share Posted September 29, 2007 http://fundisom.com/phparadise/php/image_handling/image_upload_and_resize Will automatically create a smaller image at any size you need at the time of upload. Requires the GD library that any decent php host has installed. Quote Link to comment https://forums.phpfreaks.com/topic/71158-image-sizing/#findComment-357886 Share on other sites More sharing options...
The Little Guy Posted September 29, 2007 Share Posted September 29, 2007 This is a little bit shorter code: http://phpsnips.com/snippet.php?id=5 Quote Link to comment https://forums.phpfreaks.com/topic/71158-image-sizing/#findComment-357974 Share on other sites More sharing options...
corillo181 Posted September 29, 2007 Share Posted September 29, 2007 thanx admin i was planing on doing a class this will cut my time short. Quote Link to comment https://forums.phpfreaks.com/topic/71158-image-sizing/#findComment-357975 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.