WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: NextGEN Gallery] Widget Gallery Thumbnail Problem (57 posts)

  1. sam_m
    Member
    Posted 5 years ago #

    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

  2. Alex Rabe
    Member
    Posted 5 years ago #

    But which size do you get in the past if you set it to null ? Wonder that this hack produce a good result...

  3. sam_m
    Member
    Posted 5 years ago #

    Hi Alex,

    Yes, the hack did produce the desired result!

    All photos appeared as their own sized thumbnails but still looked clear and good. So, there was no stretching or odd looking thumbnails in the sidebar.

    I really would like to be able to produce the same result with your new version. So, perhaps you can introduce a new tick box or allow the hack as before!

    One problem with the hack was that if any other widget was added or changed in the sidebar, then the 0 x 0 had to be reset and saved the gallery widget. Otherwise, the little boxes like now appeared...

  4. sam_m
    Member
    Posted 5 years ago #

    So Alex,

    Is it possible to make the thumbnails resort to their normal sizes and not forced to a size where they do not look right?

    I would like to know how to do this.. If its some code change, please tell me which file or php code to change.

    I need this fix.

    Thx

  5. rhythm_hearts
    Member
    Posted 5 years ago #

    I really, really need help with this too. I have both portrait and landscape photos in my galleries that I want to display. I just did the update to the latest version of Nextgen. On the previous version, if I selected "original image" instead of "thumbnail" in the widget control it showed both landscape and portrait. Now it seems to go by whatever is listed for the thumbnail size. Help!

  6. rhythm_hearts
    Member
    Posted 5 years ago #

    p.s. In the actually gallery pages on my site I get both landscape and portrait thumbnails. Only the widget is the problem. I can't link to it because it looks so awful right now that I just deleted the widget!

  7. sam_m
    Member
    Posted 5 years ago #

    @rhythm_hearts,

    Yes, I have the same problem, they are all squashed and squished into the same size. They don't look good at all!

    You said you deleted the widget, so what are you using instead?

    I hope someone can help with this!

  8. mrruin
    Member
    Posted 5 years ago #

    I have the same problem. Portrait images are stretched to landscape in the sidebar widget. It used to work just fine before.

    Set to "original images" and 160x120

  9. sam_m
    Member
    Posted 5 years ago #

    Alex or anyone from the NGG team?

    There are three of us here hoping that someone can help us with this issue...

    It would be great if you can tell us what or how this can be solved...

    Thx

  10. striser
    Member
    Posted 5 years ago #

    Same problem for me.
    With previous versions of NGG i used to set "original images" and a fixed width in the widget settings, leaving the height box empty, and everything worked like a charm, meaning that every image was always displayed with its correct proportions, due to the fact that the height was automatically calculated for each single picture.
    Now this is not possible anymore: I can't leave the height box empty, and if I put a value of "0", what i got is a picture that is tall 0.
    Is there a way to make the plugin work like before?
    Thanks a lot!

  11. agreda
    Member
    Posted 5 years ago #

    Make that four of us ... My thumbnails are getting resized beyond their maximum settings.

    I've set thumbnail setting to 100x75, but many are getting generated at 99x75. then when displayed in my random or recent images scripts (set to 100x75) they are getting resized to 100x76, throwing my layout outta whack.

    Any help is greatly appreciated.

  12. alexemde
    Member
    Posted 5 years ago #

    Make that five: I also use the widget to display original images and I would like to specify the width and have the height calculated accordingly. If that's not possible in the widget, does maybe someone have an idea for php code to use?

    Thanks
    Alexandra

  13. jela
    Member
    Posted 5 years ago #

    i have the same problem with the nextgen widget:

    - stretching of the thumbnails
    - can't setting 'original images'

    WP 2.7
    NextGEN Gallery 1.1.0

  14. alexemde
    Member
    Posted 5 years ago #

    I have found at least a temporary solution with this PHP image resize script:

    I inserted a call to the resize script into the nextgen "widget.php" output function passing on parameters from the widget to the script (in this case I want consistent width) and the image gets resized in realtime and served back to page:

    if ( $options[$number]['show'] == 'original' )
    $out .= '<img src="'.NGGALLERY_URLPATH.'/lib/imgsize.php?w='.$options[$number]['width'].'&img='.$image->imageURL.'" title="'.$image->description.'" alt="'.$image->alttext.'" />';

    Only issue is that this means I cannot define height and width in the html code, so the page doesn't validate, and does look a bit strange until the image is fully loaded.

  15. eptesttrial
    Member
    Posted 5 years ago #

    I think I have this same problem as well. The thumbnails are stretched. I can change the width in the sidebar widget but i can't change the height of the thumbnails to be anything other than 50 px. Don't know where this comes from. I would like to use square thumbnails or anything that doesn't make the thumbnail images stretch.

    WP 2.7
    NextGEN Gallery 1.1.0

  16. sam_m
    Member
    Posted 5 years ago #

    Wow! Over five people having the same problem is a large number of people not happy with the widget issue.

    I hope Alex will be able to help us with this. The stretching of the thumbnails makes a lot of photos look very bad.

    I've tried different sizes for thumbnails in the widget but due to a mix of portrait and landscape photos. There are always some photos not looking good at all.

    @alexmde - I did think of that, but you will only have the headache of supporting your changes once another release of NGG comes out.

    It is better if Alex can update the widget code for the aspect ratio of the images to be correct e.g a max setting for both height and width, which bypasses the stretching effect.

    WordPress 2.7.1
    NGG 1.1.0

  17. Alex Rabe
    Member
    Posted 5 years ago #

    Yep,, I found the bug why you can't set original. I will fix that in the next release.

    Secondary : I insert the fixed width/height parameter, which should be not used for original images. Thefore I need to remove it form widgets.php line 399 :

    $out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&amp;width='.$options[$number]['width'].'&amp;height='.$options[$number]['height']. '" title="'.nggGallery::i18n($image->alttext).'" alt="'.nggGallery::i18n($image->alttext).'" />';

    The rest should be done with CSS...

    See revision 463

  18. alexemde
    Member
    Posted 5 years ago #

    Thanks for posting that.

    I just tried the code, and after stripping out the "nggGallery::i18n" parts it seems to work. The change is that width & height are no longer given in HTML, right? I suppose there must also be a way to calculate height & width, because that would be better for page loading?

  19. alexemde
    Member
    Posted 5 years ago #

    Another thing comes to my mind: Is there a way to link an image to the gallery it belongs to? like putting a "see more of this series" link next to the image?

  20. sam_m
    Member
    Posted 5 years ago #

    Thx Alex,

    Will be waiting for this fix very eagerly.

    I tried changing widgets.php as per revision 463. I added all the changes as in the revision (line 296, line 394, line 399)

    But I got this on the widget control panel error instead of the widget being added:

    %BEG_OF_TITLE%
    Gallery%END_OF_TITLE%

    I realise it is to do with the change on line 394. This causes the above error.

    @alexmde - what did u actually change in widgets.php? You said you stripped out "nggGallery::i18n"

    Can you paste the code here as you have it? Thx.

    So, nothing works for me currently with respect to these changes mentioned by Alex. I hope the fix will be out very soon.

  21. bernhard-reiter
    Member
    Posted 5 years ago #

    A related suggestion: please wrap the individual widget <a href="..."><img ... /></a> tags in <div>...</div>. That way it is much easier to format them nicely, see eg http://wordpress.org/support/topic/234911?replies=1

  22. alexemde
    Member
    Posted 5 years ago #

    @sam_m: alexrabes original code from this thread didn't work for me, which is why I took out the parts I didn't quite understand... and then it worked. My output code now looks like this and it's working:

    if ( $options[$number]['show'] == 'original' )
    $out .= '<img src="'.NGGALLERY_URLPATH.'nggshow.php?pid='.$image->pid.'&width='.$options[$number]['width'].'&height='.$options[$number]['height']. ' title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
    else
    $out .= '<img src="'.$image->thumbURL.'" width="'.$options[$number]['width'].'" height="'.$options[$number]['height'].'" title="'.$image->alttext.'" alt="'.$image->alttext.'" />';
    echo $out . ''."\n";
  23. farmidable
    Member
    Posted 5 years ago #

    Hi Alex,
    I'm not sure id this is the right place to post this.I upgraded to wordpress 2.7.1 and upgraded Nextgen gallery to the latest version as well. After the upgrades my nextgen widget is showing all the description text under and along side the thumbnails. The pop-up divs are no longer working as well. I tried to downgrade nextgen gallery back but that didn't seem to fix it. Here's a link to what it looks like for now I have it disabled on my site. http://www.farmidable.com/nextgen-widget

    Nextgen gallery is a great plugin I hope someone will know how to fix this.

  24. luke1970
    Member
    Posted 5 years ago #

    Hi all,

    I have a thumbnail problem too with nextgen gallery 1.1.0 and wordpress 2.7.1 here.
    I upload picturs to a gallery but when nextgen create the thumbnails I become an error message:

    pict0081.jpg (Error : Exceed Memory limit. Require : 56.6 MByte)

    What's the problem? Please, help me.

    Greetings, Bernd

  25. negs
    Member
    Posted 5 years ago #


  26. negs
    Member
    Posted 5 years ago #

    Hi Alex.... THANKS for the plugin - it is so great.

    Same Issue - I'm trying to figure out a hack of widget.php

  27. steviemack
    Member
    Posted 5 years ago #

    Alex...I have used the NextGen Gallery loyally for the past two years and have yet to have an issue. But I set up a new WP site Yesterday (version 2.7.1) and keep getting the following error call when I update any page:

    Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'searchnggallerytags' was given in /homepages/15/d204323068/htdocs/wp-includes/plugin.php on line 166
    
    Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'searchnggallerytags' was given in /homepages/15/d204323068/htdocs/wp-includes/plugin.php on line 166
    
    Warning: Cannot modify header information - headers already sent by (output started at /homepages/15/d204323068/htdocs/wp-includes/plugin.php:166) in /homepages/15/d204323068/htdocs/wp-includes/pluggable.php on line 850

    When I deactivate the NGG plugin the error messages cease.

    Any ideas???

  28. ents
    Member
    Posted 5 years ago #

    ID 1: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 2: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 3: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 4: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 5: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 6: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 7: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 8: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 10: A failure occurred
    [more]
    [object JSXMLHttpRequest]
    ID 12: A failure occurred
    [more]
    [object JSXMLHttpRequest]

    9 and 11 worked...

  29. sam_m
    Member
    Posted 5 years ago #

    Hi Alex et all,

    Has this been fixed in 1.2.0 of nextgen?????

    I upgraded today and when I set the image size in the widget to 0 x 0 ... the result is as before tiny boxes. No change :(

    So, how do you make it work?

    Sam

  30. jela
    Member
    Posted 5 years ago #

    i have the same problem with the nextgen widget:

    - stretching of the thumbnails
    - can't setting 'original images'

    this two problems in my site are fixed with 1.2.0 :)
    thx alex!

    only a little (old) problem is always here: it's difficult to change the setting 'high', because i can't take the setting-field (firefox 3.0.7). the courser ever jump out off the field. it's not a big problem, only annoyed ;)

    jela

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.