• Hi,

    I’ve just upgraded to 2.7 WP and your latest Next Gen version 1.0.2.

    In the past I’ve used the sidebar widget to produce 8 thumbnails of random photos from my galleries. I did not want them constrained to a set side due to abnormal stretching of the thumbnails. So, I use to use a size of width 0 and height 0. This worked in past giving me different sized thumbnails but properly sized ones.

    Now, I try 0 x 0 in the gallery widget settings but it produces little grey boxes and no images (I assume the 0 x 0 setting is making them very small to see now).

    How do I get round this? Ideally, u need a new tick box in the widget settings saying:

    Do not Resize thumbnails [ ]

    But how do I fix this for now because the re-sized thumbnails in my sidebar look aweful ??

    Thx

Viewing 15 replies - 31 through 45 (of 56 total)
  • No idea?

    Thread Starter sam_m

    (@sam_m)

    I have now upgraded to 1.2.1 and still the same problem ??

    Is this fixed? If so, how do you make this work? Has anyone got this working?

    Any help appreciated.

    After upgrading to NGG 1.2.1 I’m still having the issue of thumbnails being scaled when using the nggDisplayRecentImages & nggDisplayRandomImages scripts.

    I have thumbnail size set to 100×75 in the NGG options. The scripts also include $width = '100', $height = '75' but the thumbnails are getting generated at various slightly different sizes, then getting stretched. For instance certain thumbs get generated at 97 x 75 so they end up getting stretched to 100 x 77. This messes up the layout of our random / recent images.

    Example Code:

    <?php
    if (function_exists(nggDisplayRecentImages))
    { nggDisplayRecentImages($number = '12', $width = '100', $height = '75', $exclude = 'all', $list = '', $show = 'thumbnail'); }
    ?>

    Does anyone know a way to constrain both dimensions, not just height or width?

    what is the original size of your images ?
    and which settings do you use fore the thumbanils ?

    Ok, I don’t know if this will shed any light on this issue, but I’m working on two sites at two different ISPs. Both have WordPress 2.7.1 and Nextgen 1.2.1

    I uploaded the same images to a new gallery on both sites, on one the thumbnails fail, on the other they work fine.

    I next checked the GD library ( using
    <?php
    var_dump(gd_info());
    ?>
    and the site that works has GD Version 2.0.34, while the site that failed is at Version 2.0.28

    Here is the info
    ——————
    array(12) {
    [“GD Version”]=> string(27) “bundled (2.0.34 compatible)”
    [“FreeType Support”]=> bool(true)
    [“FreeType Linkage”]=> string(13) “with freetype”
    [“T1Lib Support”]=> bool(true)
    [“GIF Read Support”]=> bool(true)
    [“GIF Create Support”]=> bool(true)
    [“JPG Support”]=> bool(true)
    [“PNG Support”]=> bool(true)
    [“WBMP Support”]=> bool(true)
    [“XPM Support”]=> bool(false)
    [“XBM Support”]=> bool(true)
    [“JIS-mapped Japanese Font Support”]=> bool(false) }

    array(11) {
    [“GD Version”]=> string(27) “bundled (2.0.28 compatible)”
    [“FreeType Support”]=> bool(true)
    [“FreeType Linkage”]=> string(13) “with freetype”
    [“T1Lib Support”]=> bool(false)
    [“GIF Read Support”]=> bool(true)
    [“GIF Create Support”]=> bool(true)
    [“JPG Support”]=> bool(true)
    [“PNG Support”]=> bool(true)
    [“WBMP Support”]=> bool(true)
    [“XBM Support”]=> bool(true)
    [“JIS-mapped Japanese Font Support”]=> bool(false) }
    —————-
    I also checked the PHP versions, the site that works had PHP 5.2.6, the site that fails is PHP 4.4.9

    Hope this helps explain the problem

    this has been solved, see https://www.ads-software.com/support/topic/217390
    It is a php4 verse 5 issue

    I fixed this issue by editing the widgets.php file located in nextgen-gallery/widgets. I replaced

    $out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$alttext.'" alt="'.$alttext.'" />';

    with

    $out .= '<img src="'.$image->thumbURL.'" height="'.$options[$number]['height'].'" title="'.$alttext.'" alt="'.$alttext.'" />';

    this eliminated the width attribute from the images in the widget. This still uses the height that you define in the widget admin. So all images will have the same height but will scale the width, which will allow landscape and portrait images to look right ??

    This isn’t the best fix but it is a temp one for those that need it. Hopefully we can come up with something a little better.

    One issue that still exists with this fix is if you have different image sizes. Example, most of my thumbnails are 190×143 but some are 190×126 due to a different camera taking different aspect ratios. The ones that are 190×126 don’t get scaled to the right width for my sidebar cause the height is already below the defined height.

    I’m afraid that fix will blow up in IE6. which unfortunately a lot of people still use. my experience is that IE won’t display any image at all if you only give one dimension. It wants all or nothing.

    Ahh, I always forget to check that browser out. I wish it would just go away, it would make web design so much easier ??

    what is the original size of your images ?

    I re-size all photos to exactly 640×480 before uploading them.

    and which settings do you use fore the thumbanils ?

    • Width x height (in pixel) = 100 x 75
    • Set fix dimension = checked
    • Crop square thumbnail from image = UNchecked

    Thanks for asking!

    PS: Since the latest update, all thumbnails seem to be generating properly at exactly 100×75. But thumbnails generated with the new edit feature still break (i.e.; some get re-created at 97×75)

    Thread Starter sam_m

    (@sam_m)

    Alex et all,
    I have now upgraded to 1.3.0 and the problem is still present. I am on PHP5 and WP 2.7.1

    My settings in the thumbnails section are:
    Width x Height = 100 x 120
    set fix dimension : UNCHECKED
    crop square thumbnail : UNCHECKED
    thumbnail quality : 100%

    This use to work great before by using 0 x 0 settings. But now it does not.

    All it needs to be is the same code as you have when you add a gallery to a post. All the thumbnails in the post render correctly.

    We need a fix to widget …

    I’ve exactly the same problem than agreda. Anyone has a solution ?

    I’ve exactly the same problem than agreda.

    Glad to hear I’m not the only one. Just bumping this topic since the issue continues for me after upgrading to 1.3.0.

    FYI: My settings remain the same as listed above. Also, the (relatively) new edit thumb feature consistently generates thumbs at 97×75 which then get stretched upon display to 100×76.

    (BTW: most excellent upgrade. thanks!)

    Thread Starter sam_m

    (@sam_m)

    Hi,

    Now I am on 1.3.1 and still no change ??

    Defo need a fix for this ….

    Sam

    Another person checking in the with the same problem.

    Thumbnail images are stretched. Tried all the fixes.

    WP 2.7.1.
    Next GEN 1.3.3

    Any help would be much appreciated. Or, I hate to say this, referral to another gallery plug-in. We need this to work.

Viewing 15 replies - 31 through 45 (of 56 total)
  • The topic ‘[Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem’ is closed to new replies.