How to Resize Thumbnail Image in WordPress
The are two image size systems in WordPress System: thumbnail and original. Using Thumbnail will insert a thumbnail version of the image into your post. Using Original will insert the image at its original size.
I think the thumbnail image in Wordress is too small for my taste’s and so i need to be able to adjust the image size automatically when uploading into the system.
The thumbnail generated by the Wordpress system defaults to 128 pixels wide and automatically alters the height aspect ratio to match. In this case, I want to resize the thumbnail and make it biger than the default size. I think a double size is enough for me
Here are two thumbnail images.
First thumbnail generated by the Wordpress system defaults, therefore its size should be 128 pixel and automatically alters the height aspect ratio to match.
The second thumbnail generated by the WordPress system but I was edit this size to double size than its normaly size, therefore its size should be 256 pixel and automatically alters the height aspect ratio to match.
Here is a little tips to resize the thumbnail. Feel free to choose your own size. You should to open “wp-admin/inline-uploading.php”, scroll down to line 88 and change:
if ( $imagedata['width'] > 128 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 ) $thumb = wp_create_thumbnail($file, 128); elseif ( $imagedata['height'] > 96 ) $thumb = wp_create_thumbnail($file, 96);
to
if ( $imagedata['width'] > 256 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 ) $thumb = wp_create_thumbnail($file, 256); elseif ( $imagedata['height'] > 192 ) $thumb = wp_create_thumbnail($file, 192);
That will double the thumbnail size like mine
The disadvantage from this method is you need to edit “wp-admin/inline-uploading.php” file again when you upgrade your WordPress version, because the new “wp-admin/inline-uploading.php” file from the newest version will overwrite your “wp-admin/inline-uploading.php” file. Hopefully, in an upcoming WordPress release, they?ll give us a preference on thumbnail sizes.
Well done! have a great day and gud lak!
Related Posts
- Thumbnail Size with Wordpress 2.1
- Adjust Thumbnail Size in WordPress 2.5
- Change Default Thumbnail Size in WordPress 2.3
- ImageManager Plugin for WordPress
- Adsense Beautifier
- Upgrading Wordpress
- Blog with Ubuntu Dapper
- WordPress 2.5.1 is Available
- 7 Useful Wordpress Plugins for AdSense!
- PayPal Donate Plugin for WordPress Widget Support
11 Responses to “How to Resize Thumbnail Image in WordPress”
Please Wait


















cool tip!
just what i needed for my blog
cheers
how did you make that hover effect for the image?
Hi Jim, I install sweet title plugin for title the link. Have a great day!
where can I get the plugin?
Hi Jim, look bad coz I can not visit their official site anymore. Hopefully this will help you Sweet Titles Finalized. But you should make it your self. I mean that is not WP plugin. I think it is not too hard to install it into your wordpress.
I can send the Sweet Plugin WP plugin if you really want it
Have a great day and gud lak!
I tried to make it the plugin but I could not. My email is thegamep2p@gmail.com if you could send it to me that would be awesome
Hi Jim,
I sent you Sweet Title WP Plugin. Please check ur email.
Have a great day!
Just wondering what plug-in you use for the “You came from Yahoo search” box. Can you point me in the right direction?
That and the live preview of comments — you’ve got some great bits of functionality here on your site. Looks good!
I just came across your “plugins I use” post. Sorry to bother you with the comment.
Hi David,
No problem. Your comment always welcome
Have a great day!