WordPress.org

Ready to get started?Download WordPress

Forums

thumbnail size (57 posts)

  1. bgracewood
    Member
    Posted 8 years ago #

    I'll add another voice requesting an easy way to specify alternative thumbnail image sizes!

  2. Arisa
    Member
    Posted 8 years ago #

    "So what I'd like to see is the option to create a 266x200, 400x532, or any other size I may want that one time thumbnail, instead of a certain fixed size. (Or at least the option to set the one size easily for my blog-the default is way too small I think.)"

    I second this; but I'd love to make the thumbnails even smaller -- 25x25 at default. I want to use WP to make my gallery site run a bit smoother, and other than that snafu, it'd be perfect.

    "I'll add another voice requesting an easy way to specify alternative thumbnail image sizes!"

    Definitely agree with this. If we could set our own defaults, that'd be lovely. Maybe even allow for a default setting, and then 'on the fly' settings that apply only to the image they're set to?

  3. Kep
    Member
    Posted 8 years ago #

    I'd like to vote for a NO THUMB option as well since right now my ediotr can't tell the difference. Ack!

  4. querformat
    Member
    Posted 8 years ago #

    well, the thumbnail size selection is a feature i'd like to have, too.

  5. weschilders
    Member
    Posted 8 years ago #

    Has anyone found a solution for this? The thumb-splint.diff fix is for a different problem altogether...

    I would think most people would like to be able to select how big (or small) the thumnails WP creates will be.

  6. chicobonsai
    Member
    Posted 8 years ago #

    I agree, the thumb size is too limitating. Is necessary an easy setting in some place.

  7. rolandog
    Member
    Posted 8 years ago #

    I don't understand... how was it that they removed the 'specify your thumbnail' size feature from WordPress?

    It was back in the upload section in WP 1.5. Also, how about putting back in the option to specify the file extensions I will allow uploading? I remember I was able to upload PDFs, and other stuff...

  8. monkeynotes
    Member
    Posted 8 years ago #

    This is bugging me too. I want to be able to specify the true thumb size, not just HTML resize the thumbnail/main image. I am dabbling with PixGallery which claims to resize thumbs on the fly but it does not seem to be working.

  9. Bacchus1906
    Member
    Posted 8 years ago #

    This is ridiculus. I keep clicking on the use original option and it still it only sends a thumbnail to the editor. There has got to be a better way. How can I get a larger image to my postings? I can successfully link to original but I want a larger pic than a thumbnail in the post. I can stretch the image, but it distorts the picture. Can someone give me a better way. I am using 2.01.

  10. fastfission
    Member
    Posted 8 years ago #

    I'm really surprised that in an otherwise well-put together piece of code there are such ridiculous things hard-coded into it, like thumbnail size and the rather pointless limitation on what size images it will create thumbnails for... this should be really, really easy to do.

  11. Chris_K
    Member
    Posted 8 years ago #

    http://trac.wordpress.org -- The developers always welcome code submissions!

  12. fastfission
    Member
    Posted 8 years ago #

    If you have a maximum height and width you'd like, and want WP to ALWAYS make a thumbnail no matter how huge your image is, this code for inline-uploading.php seems to work:

    'FIND THIS LINE:
    add_post_meta($id, '_wp_attachment_metadata', $imagedata);

    /* NOW ADD THIS AFTER IT */
    $maxthumbheight = 450;
    $maxthumbwidth = 450;

    if(($imagedata['width']>$maxthumbwidth) OR ($imagedata['height']>$maxthumbheight)) {

    if($imagedata['width']>$imagedata['height']) {
    $thumb = wp_create_thumbnail($file, $maxthumbwidth);
    } else {
    $thumb = wp_create_thumbnail($file, $maxthumbheight);
    };
    /* DONE ADDING */

    /* COMMENT THIS OUT
    if ( $imagedata['width'] * $imagedata['height'] < 3 * 1024 * 1024 ) {
    if ( $imagedata['width'] > 128 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 )
    $thumb = wp_create_thumbnail($file, 128);
    elseif ( $imagedata['height'] > 96 )
    $thumb = wp_create_thumbnail($file, 96);
    COMMENT THIS OUT */
    if ( @file_exists($thumb) ) {
    $newdata = $imagedata;
    $newdata['thumb'] = basename($thumb);
    update_post_meta($id, '_wp_attachment_metadata', $newdata, $imagedata);
    } else {
    $error = $thumb;
    }
    }

    Basically you can set a maximum thumbnail size for both the height and the width, and it should figure out which of those is the longer edge in your image and constrain it to that. The only time it won't make a thumbnail is if the image is already smaller than the max thumbnail size itself.

    It still isn't ideal (it is still hardcoded, but at least it is easier to change than it was before), but for me it seems to have done what I want in the short term... if I had any idea how the WP interface worked I'd try to make up something with some options, but I haven't develed into that level of things yet.

  13. newmomsforum
    Member
    Posted 8 years ago #

    Any chance someone could copy and paste the whole code after these edits have been made

    I can't get it to work, my thumbs remain the same size following these instructions.

    Must be missing something or reading the instructions wrong. Grr :)

  14. oriecat
    Member
    Posted 8 years ago #

    I kept getting a parse error when I tried to do the code like fastfission posted, but I was able to copy over the old code and it mostly works for me, although the max doesn't seem to work right... i set maxheight to 200, max width to 400, and it made a 400x265 thumbnail, which is obviously over the max height... maybe I'm missing something though... but it definitely better than those tiny things it was making...

  15. bresslau
    Member
    Posted 8 years ago #

    Fastfissions solution worked for me, thanks.

  16. bran8464
    Member
    Posted 8 years ago #

    I would just like to display the original and not a thumbnail - that seems to be the urgent question. I have tried the various mods to the file but to no avail. Is there any progress on this issue yet?

  17. 3stripe
    Member
    Posted 8 years ago #

    +1 for an image management plugin :)

  18. desmark
    Member
    Posted 8 years ago #

    Fast fission's suggestion worked for me too.

    If you are just looking to hard code a max height/width for your thumbs, you can edit the portion that is meant to be commented out.

    if ( $imagedata['width'] * $imagedata['height'] < 3 * 1024 * 1024 ) {
    if ( $imagedata['width'] > 128 && $imagedata['width'] >= $imagedata['height'] * 4 / 3 )
    $thumb = wp_create_thumbnail($file, 128);
    elseif ( $imagedata['height'] > 96 )
    $thumb = wp_create_thumbnail($file, 96);

    Replacing the 128 (max width) or 96 (max height) with your personal preferences.

    Saves the extra fiddling if you want standard sizes across your site. :)

    Great support forums BTW

  19. Brigitte
    Member
    Posted 8 years ago #

    I just installed the plugin post_image and I realized that yes, indeed, the thumbnails are way too small. Is there any way to make an option on what size the thumbnail should be sized? It would be ever-so helpful to have this feature added.

  20. palkat
    Member
    Posted 8 years ago #

    How would you get inline-uploading.php to ALSO RESIZE the original/uploaded file when it is save? (not just the thumbnail)

  21. palkat
    Member
    Posted 8 years ago #

    Figured out how to resize the big imag after upload here: http://mu.wordpress.org/forums/topic.php?id=1588&replies=8#post-9026

  22. dbasulto
    Member
    Posted 7 years ago #

    a plugin for this would be nice :)

  23. vkaryl
    Member
    Posted 7 years ago #

    Try ImageManager from http://soderlind.no.

    Or if feeling adventurous, the beta of WindowsLiveWriter. http://windowslivewriter.spaces.live.com/blog/cns!D85741BB5E0BE8AA!174.entry - download linked from there.

    Note that the "raw" entry of graphics or maps will NOT VALIDATE unless you use the html option in the input window before uploading to whack the stuff MS seems to think is necessary....

    Also note that WindowsLiveWriter is the single simplest option for any of this I have EVER used.

  24. EricG
    Member
    Posted 7 years ago #

    vkaryl, thanks for those links. ImageManager is just the kind of image plugin I was looking for. And I tried out WindowsLiveWriter, and it's so easy to use it's scary.

  25. glmjjb
    Member
    Posted 7 years ago #

    I also support to add the feature to change the default thumbnail size...

  26. stevebarry
    Member
    Posted 7 years ago #

    fastfission's code worked for me as well. thanks a million...seriously i had been trying to figure that out on my own for about an hour. excellent support forums here.

  27. jeanhshin
    Member
    Posted 7 years ago #

    Please excuse my technical limitations, but I'm dying to change my thumbnail images to be normal size. I would like to try inserting the code Fast Fission recommended, but how do I go about editing the php file? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic