malisa Posted March 6, 2009 Share Posted March 6, 2009 Many times your site needs images to be uploaded, may be for display with submitted content, then you have to make sure that the images displayed should be of a suitable size. If a user uploads a particularly large image, it may destroy the layout of the page when it is displayed. Thumbnail images guarantee you that the images displayed will never exceed certain height and width values. Creating a basic thumbnail is a five-stage process: 1. Load the source image into a PHP variable. 2. Determine the height and width of the original image. 3. Create a blank thumbnail image of the correct size. 4. Copy the original image to the blank thumbnail. 5. Display the thumbnail using the correct content type. For more details you can go through http://phptechhelp.com/index.php?option=com_content&task=view&id=15&Itemid=32 Quote Link to comment https://forums.phpfreaks.com/topic/148226-how-to-create-a-thumbnail-image-in-php/ Share on other sites More sharing options...
jackpf Posted March 6, 2009 Share Posted March 6, 2009 ...do you actually need help with something or are you just stating this..? Quote Link to comment https://forums.phpfreaks.com/topic/148226-how-to-create-a-thumbnail-image-in-php/#findComment-778136 Share on other sites More sharing options...
malisa Posted March 6, 2009 Author Share Posted March 6, 2009 I used this script and it works for me so I want to share with others Quote Link to comment https://forums.phpfreaks.com/topic/148226-how-to-create-a-thumbnail-image-in-php/#findComment-778143 Share on other sites More sharing options...
jackpf Posted March 6, 2009 Share Posted March 6, 2009 Oh right, cool. I thought you wanted help or something. Quote Link to comment https://forums.phpfreaks.com/topic/148226-how-to-create-a-thumbnail-image-in-php/#findComment-778146 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.