InfoHole A blog by Gordon Page

12Oct/070

WordPress Thumbnail Fails

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

Filed under: Computing Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.