/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//---------- To create thumbnail of image--------------- if($extension=="jpg" || $extension=="jpeg" ){ } else if($extension=="png"){ } else{ } $newwidth=151; $newheight=151;//($height/$width)*$newwidth; //-------------- Ends ----------- $blog_thumb = get_site_option('rt_blog_thumb'); update_site_option('rt_blog_thumb', $blog_thumb); } else echo 'Invalid file'; }