Warning: Creating default object from empty value in /home/design/public_html/wp-content/plugins/paged-comments/paged-comments.php on line 31
Change Default Thumbnail Size in WordPress · Dagon Design

Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Updated Sunday, February 22nd, 2009 at 8:20pm

Change Default Thumbnail Size in WordPress

WordPress 2.5 and later include a built-in option to change the size of thumbnails, but for those of you out there using an older version, it is quiet easy to change. It just requires modification of one WordPress file. When WordPress 2.1 was released, it changed the way this was done, and once again with the release of WordPress 2.3, so I have included instructions below for multiple versions.

Instructions for:

  If you have found this page useful, please consider donating. Thanks!


WordPress 2.0

Open /wp-admin/inline-uploading.php and look for the following code:

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);

The default max size is 128 x 96. You can change these numbers to whatever you like, although you must keep the proper aspect ratio (4 / 3).

For example, to double the size of the thumbnails, replace 128 with 256, and 96 with 192. Be sure to change both sets of numbers – they are each listed in the code twice.


WordPress 2.1 – 2.2

Open /wp-admin/admin-functions.php and look for the following code:

$max_side = apply_filters( 'wp_thumbnail_max_side_length', 
128, $attachment_id, $file );

The number specified here (128 by default) is the maximum size of either dimension. Just change this to whatever you like.


WordPress 2.3

Open /wp-admin/includes/image.php and look for the following code:

$max_side = apply_filters( 'wp_thumbnail_max_side_length', 
128, $attachment_id, $file );

The number specified here (128 by default) is the maximum size of either dimension. Just change this to whatever you like.

WordPress 2.5 and later

Version 2.5 and later have built-in support for the thumbnail size in the options.

  If you have found this page useful, please consider donating. Thanks!

Pages: [11] 10 9 8 7 6 5 4 3 2 1 » Show All

  1. download your missing dll file here!

  2. aseca sddcascv buyuk yanki getirmenin ardindan vatanim sensin dizisi sevilmesinin gucunu anlatmaktadir. Vatanim sensin son bolum izle neler olacagini tartisalim. programs 2017 | programs 2017 | computer programs \ free programs | computer games | free full computer programs | subneeds
    programs 2017 | programs 2017 | computer programs \ free programs | computer games | computer games 2017 | bramjrino
    downlaod need for speed | gta san andreas | download wrestling game \ supercopier | vlc media player | phoxo | photofunia

  3. buyuk yanki getirmenin ardindan vatanim sensin dizisi sevilmesinin gucunu anlatmaktadir. Vatanim sensin son bolum izle neler olacagini tartisalim. qq player | avira | photoscape \ video edit magic | download recuva | recuva | audio recorder
    driver pack | fun face master \ photography video games | winrar | super copier | nero
    avant browser | teamviewer | gom player \ sound chapter music | skype | download avs audio recorder | netcut

  4. Yakin zamanda buyuk yanki getirmenin ardindan vatanim sensin dizisi sevilmesinin gucunu anlatmaktadir. Vatanim sensin son bolum izle neler olacagini tartisalim. dfx audio enhancer | Download QQ player | Photo DVD Maker \ movie maker | download windows movie maker | Download Folder Lock | goegypt
    Skype | Download GoldWave | Download Photoshop \ Format Converter | Format Factory | Download Best Video Player | mamystyle
    ultraiso | poweriso | utorrent \ recover myfiles | download video converter | after effects | need for speed

  5. Yakin zamanda buyuk yanki getirmenin ardindan vatanim sensin dizisi sevilmesinin gucunu anlatmaktadir. Vatanim sensin son bolum izle neler olacagini tartisalim.

  6. grestest coment

  7. great !!!

  8. Many thanks for this great

  9. Many thanks for this great tip!

    http://rinduumroh.com/index.php/2016/08/14/paket-umroh-desember-liburan-sambil-ibadah/

  10. Many thanks for this great tip!

    <a href="http://www.paketumrahkhazzanah.com/2016/04/umroh-desember-2016-liburan-yang-indah.html" >paket umroh Desember 2016</a> 
    <a href="http://rinduumroh.com/index.php/2016/08/14/paket-umroh-desember-liburan-sambil-ibadah/" >umroh Desember 2016</a>

Pages: [11] 10 9 8 7 6 5 4 3 2 1 » Show All

Leave a Comment

Before you comment: If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.


Be sure to wrap all code in <code></code> tags.