Home > computing > Wordpress Thumbnail Fails

Wordpress Thumbnail Fails

October 12th, 2007

Apparently wordpress thought that it would be a good idea to limit thumbnail generation to pictures less than 3 megapixels in size. Having worked with GD a lot I can not think why anyone would need to impose such a limit.

How to fix it:

Open admin-functions.php in the /wp-admin folder.

Search for an occurance of wp_thumbnail_creation_size_limit, it will return something like “$max = apply_filters( ‘wp_thumbnail_creation_size_limit’, 3 * 1024 * 1024, $attachment_id, $file );”

Simply replace the 3 (megapixels) with any number you like, e.g. “$max = apply_filters( ‘wp_thumbnail_creation_size_limit’, 13 * 1024 * 1024, $attachment_id, $file );”

gordonrp computing

  1. No comments yet.
  1. No trackbacks yet.