• Hi,

    in an older WordPress I was using before, the size for the thumbnail creation could be changed in the inline-upload.php (or something like this). Now, this file has disappeared.

    The closest I got now to figure out what has to be done is to change this paramter:

    wp_thumbnail_creation_size_limit

    I guess it has to be set within MySQL somehwere. But I haven’t found it…

    Any hints?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter luftikus143

    (@luftikus143)

    Hello,

    can’t imagine that no one hasn’t had similar problems… Please, let me know how you deal with using other sizes for the thumbnails as the predefined one.

    Thanks a lot!

    Thread Starter luftikus143

    (@luftikus143)

    in wp-admin -> admin_functions.php there is the line:

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

    I just changed the “128” to “400” – or whatever you need in width/height…

    For a quick fix, the solution above helped.

    Just like others, I searched high and low for some sort of workable adjustment. Unfortunately I couldn’t find any and decided to try the above, with a little tweak of my own on the side.

    Works for WordPress 2.1

    Step 1
    As stated above, in wp-admin > admin-functions.php file look for …

    $max_side = apply_filters( ‘wp_thumbnail_max_side_length’, 128, $attachment_id, $file ); [line 2118]

    By changing the amount, it adjusts the thumbnail generation [when thumbnail is chosen to be sent to editor], that appears on your post page.

    I continued to play around, and realised that the thumbnail that appears in your Upload/Browse section doesn’t change accordingly.

    Step 2
    In wp-admin > upload-functions.php file look for …

    list($width,$height) = wp_shrink_dimensions($attachment_data[‘width’], $attachment_data[‘height’], 171, 128); [line 15]

    Since I was antsy and wanted this changed, I changed the amount above (172, 128) to something smaller like 50, 50. And it worked. So now I have smaller thumbnail views in the Upload/Browse section.

    Everything seems fine on my end, so if you guys wanna try that out, be my guest.

    BTW, thanks luftikus143 for the note above.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Thumbnail Size with WordPress 2.1’ is closed to new replies.