Adjusting the WordPress thumbnail threshhold
July 17, 2006 | 2 CommentsLong title for a simple problem. If you are using WordPress and are annoyed that it won’t generate thumbnails for pictures larger than 3 megapixels, the place to change this is wp-admin/inline-uploading.php . The line in question reads (line 87 in my copy):
if ( $imagedata['width'] * $imagedata['height'] < 3 * 1024 * 1024 ) {
Change the 3 to 4 or 5 or what have you. You don’t want to go too crazy since there are some valid concerns about memory consumption and speed. PHP has some configuration for how much memory a script my use (“memory_limit” in my php.ini) so you might have to raise this as well. Currently I’m resizing 4 megapixel images with the default 8mb memory limit without any problems.
2 Comments
Sorry, the comment form is closed at this time.
Thanks, this was very helpful!
Comment by Björn — August 13, 2006 #
Once you know these values, is becomes fairly simple to make adjustments.
Comment by Matawhali — November 30, 2007 #