/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<?
/*this can be used to resize image in jpeg format only
which provive a good quality thumbnails*/
// This is the temporary file created by PHP
$uploadedfile = $_FILES['simage']['tmp_name'];
// Create an Image from it so we can do the resize
// Capture the original size of the uploaded image
$newwidth=300;
//$newheight=($height/$width)*100;
$newheight=200;
// this line actually does the image resizing, copying from the original
// image into the $tmp image
// now write the resized image to disk. I have assumed that you want the
// resized, uploaded image file to reside in the ./images subdirectory.
$filename = $_FILES['simage']['name'];
?>
URL: http://www.itwebinfo.com/forum/comments.php?DiscussionID=4&page=1#Item_0
Comments
 Subscribe to comments
                    Subscribe to comments
                
                