WordPress.org

Ready to get started?Download WordPress

Forums

Is there a way to avoid medium size thumbnails on image gallery? (14 posts)

  1. giovanealex
    Member
    Posted 6 years ago #

    Is there a way to avoid "Medium size" thumbnails from being created and showed on new image gallery/manager on WordPress 2.5? I rather use a simple little thumbnail/original size scheme than using three different sizes of the same images.

    Thanks in advance!

  2. mnogueir
    Member
    Posted 6 years ago #

    Also looking for this... :S

  3. giovanealex
    Member
    Posted 6 years ago #

    Maybe someone could implement this solution through a plugin - though I would like it to be a native feature...

  4. mnogueir
    Member
    Posted 6 years ago #

    I opened a ticket (http://trac.wordpress.org/ticket/6468) about this; maybe it gets some support...

  5. giovanealex
    Member
    Posted 6 years ago #

    Thanks a lot! Let's see if someone finds a solution.

  6. ibear
    Member
    Posted 6 years ago #

    if you set the Max width and Max height for medium pics to a large enough value (i.e. larger than any picture that you would upload), no medium sized thumbnail will be generated. the setting is at Options>Miscellaneous

  7. mnogueir
    Member
    Posted 6 years ago #

    @ibear: And would that work with the previously uploaded images? Or must we re-upload all images? Thanks for the tip!

  8. Dickie
    Member
    Posted 6 years ago #

    Sorry... Ignore

  9. Red1
    Member
    Posted 6 years ago #

    As a temp fix ibear's solution will work, although like you I don't see the point of having an extra image stored on the system without the option to disable.

  10. mnogueir
    Member
    Posted 6 years ago #

    One more thing: the solution does skip the medium size thumbnail, but it still doesn't link directly to the original image. It links to an "attachment" page, where the image is displayed. What I wanted was to have a thumbnail gallery where each thumbnail links to the image file, so that I can use a Lightbox...

  11. harknell
    Member
    Posted 6 years ago #

    Hi, have you guys tried using either NextGen gallery, AWSOM Pixgallery, or any of the other galleries available? They all pretty much have what you want and will have more dedicated support and options since they are dedicated projects.

  12. mnogueir
    Member
    Posted 6 years ago #

    @harknell: well, yes, i did tried. However, i would rather stick with the core "functions", since i don't need that many functionalities. Anyway, it seems I'm out of luck with this wp gallery, I may just try again one of the "other" galleries... Thanks for the suggestion.

  13. mnogueir
    Member
    Posted 6 years ago #

    Just found this info:

    edit media.php in the wp-includes dir:

    The line number 394 is as follows in 2.5:

    $link = wp_get_attachment_link($id, $size, true);

    change it to:

    $link = wp_get_attachment_link($id, $size, false);

    and it should work!

    And it does. I updated my trac request to include this. Maybe this could be coded as an admin option...

  14. Bernard Bos
    Member
    Posted 5 years ago #

    Thanks for the solution.

    Bytheway, in 2.6.1 it's line 447 in media.php

Topic Closed

This topic has been closed to new replies.

About this Topic