WordPress thumbnail generation disabled

No thumbnails in your wordpress? Read on…

I noticed last night that my wordpress is not generating thumbnails from uploaded images like it’s suppose to. You’ll noticed that the size options (thumbnail, medium, large) are all disabled except for the full size.

wordpress-size-options

After doing a lot of searching, I finally found out that in order for wordpress to generate thumbnails “by default”, you need to have GD library support for your php. It would have been nice if wordpress had documented that better.

The only reference I found was this:

http://wordpress.org/support/topic/235625

To be clear, wordpress does not generate thumbnails by default unless your php instance has GD support.

Install php gd library

For me, installing GD library was easy:

# yum install php-gd

Check for gd

To check if you have GD loaded in php:

# php -m
[PHP Modules]
bz2
calendar
ctype
curl
date
dbase
exif
ftp
gd
gettext
gmp
hash
iconv

8 thoughts on “WordPress thumbnail generation disabled

  1. Thanks for the tip. Adding the php-gd package to CentOS is a snap.

    So, it appears that WordPress creates the various image sizes upon upload; the image size options don’t appear until re-adding them. Is that right?

  2. That’s correct. The various image sizes are generated when you upload. So if you did not have php-gd installed when you uploaded pics the first time, then you will have to re-upload them.

    To confirm, you can look in your uploads directory. There should be a file for each size that was generated.

    E.g.
    viking_full-112×150.jpg
    viking_full-225×300.jpg
    viking_full.jpg

  3. Pingback: More pictures for MT.Net soon « Mark Turner Dot Net

  4. Pingback: Wordpress erstellt keine Thumbnails – Installation der GD Library für Php5 « blog.d-11.de

  5. Never understood why there wasn’t a “you’ll need this…” info page for wordpress. It is probably intentional based on their other business interests when it comes to wordpress.

    I was amazed at all the configs I needed to change to get wordpress working – max upload stuff, installing gd and a bunch of the stuff I probably forgot already.

  6. Yes, thank you so much, that did the trick! I have a self-hosted blog running on a LAMP machine and i couldn’t create any thumbnails. I don’t understand why they don’t mention this solution in the forums.
    p.s. if you have already images and you want thumbnails for them you can use the plugin “regenerate thumbnails”.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>