kirkh34 Posted July 20, 2010 Share Posted July 20, 2010 i've looked for tutorials on how to resize and create thumbnails but i'd like to find one that shows how to do it all when the image is first uploaded.... i would like the image to be resized and stored as the "original" image...then also make a copy as a smaller thumbail... can anyone recommend any tutorials or even better, write some very basic code and ideas to get this done...thanks Quote Link to comment https://forums.phpfreaks.com/topic/208348-resize-create-thumbnail-on-image-upload/ Share on other sites More sharing options...
waynew Posted July 20, 2010 Share Posted July 20, 2010 A thumbnail can be either cropped or resized (usually cropped). Look into cropping images with PHP. Quote Link to comment https://forums.phpfreaks.com/topic/208348-resize-create-thumbnail-on-image-upload/#findComment-1088843 Share on other sites More sharing options...
litebearer Posted July 21, 2010 Share Posted July 21, 2010 the major concern with cropping images is that the script cannot really identify the main focus of the image ie is a face in the middle, top, bottom, left, right of the original. There are ways to incorporate image cropping into a site. as to code, here is one I use. You will need to incorporate it into your upload script but it is realtively easy to do. http://www.nstoia.com/toh/imageresize.php Quote Link to comment https://forums.phpfreaks.com/topic/208348-resize-create-thumbnail-on-image-upload/#findComment-1088876 Share on other sites More sharing options...
dreamwest Posted July 21, 2010 Share Posted July 21, 2010 Resizes, FTP, and ajax upload http://www.wizecho.com/nav=scripts&s=ajax_image Quote Link to comment https://forums.phpfreaks.com/topic/208348-resize-create-thumbnail-on-image-upload/#findComment-1088878 Share on other sites More sharing options...
kirkh34 Posted July 21, 2010 Author Share Posted July 21, 2010 litebearer- this code is short and simple and just what i need to incorporate with the uploader that i already have thanks all for the replys... Quote Link to comment https://forums.phpfreaks.com/topic/208348-resize-create-thumbnail-on-image-upload/#findComment-1088919 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.