WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] NextGEN Gallery Resizing My Album Thumbs (50 posts)

  1. haizdesign
    Member
    Posted 11 months ago #

    After the latest NextGEN 2 update, I found my album thumbnails were all being resized, and they were linking to a new dynamic folder. This caused all sorts sorts of problems that could not be fixed with CSS, as I then ended up with pixelated thumbnails!
    I have a client coming to view the site on my local server this afternoon so have re-installed the previous version.

    Before I attempt to update the plugin again, can anyone else confirm what was happening and how to fix it?

    http://wordpress.org/plugins/nextgen-gallery/

  2. robbyvillabona
    Member
    Posted 11 months ago #

    I updated my development site to see what the effect is and in my case, the thumbnails being shown by the album shortcode were smaller than my defined thumbnail size. This wasn't the case in the older version where it showed the right thumbnail size based on how I configured it. Not quite sure how to fix it either so I'm holding off from updating.

  3. haizdesign
    Member
    Posted 11 months ago #

    That was my exact problem too. Back with the previous version and everything looks as intended!

  4. photocrati
    Member
    Plugin Author

    Posted 11 months ago #

    Hi - To clarify the issues here: the two of you were both defining custom thumbnails sizes for albums from within shortcodes, and those were not being honored?

  5. haizdesign
    Member
    Posted 11 months ago #

    No. Sizes for thumbnails were set in the Options, and I also used max-width and max-height in my CSS to prevent client overrides.

  6. robbyvillabona
    Member
    Posted 11 months ago #

    Same here -- thumbnails were set in Other Options. Set 200x200 Default thumbnail dimensions and "No" to Set fix dimensions. What comes out instead is a cropped 91x68 thumbnail (my original album image has portait dimensions).

    Didn't use max-width and max-height in my CSS in my case.

  7. sebulbausb
    Member
    Posted 11 months ago #

    I'm having the same problem. In album-compact.php I'm trying to edit the src from <img src="<?php echo $gallery->previewurl ?>" /> and replace previewurl with the path for the image thumb inside the gallery, but it doesn't work. Do we have a variable that we can call for this?

    Thanks!

  8. brianne_emmedia
    Member
    Posted 11 months ago #

    I am having the same issue. Has anyone found a solution?
    Thanks!

  9. sebulbausb
    Member
    Posted 11 months ago #

    I just downgraded to 1.9 and now it works fine.

  10. rakupa
    Member
    Posted 11 months ago #

    Anything new to this? Beside many other minor problems, I've got exactly this one too.

  11. oLLE
    Member
    Posted 11 months ago #

    Same issue...
    As well all the galleries, that have no preview image, are not displayed at all, so i can edit about 500 galleries an set a preview image

  12. rakupa
    Member
    Posted 11 months ago #

    I edited adapter.nextgen_basic_album_controller.php
    Around line 153 I inserted my width and height.
    But this is only a little workaround. With next update this settings will be gone, I suppose.

  13. vialcollet
    Member
    Posted 11 months ago #

    I have the same issue with album thumbnails and I look forward to get a proper resolution.

    Thanks

  14. GregyPooh
    Member
    Posted 10 months ago #

    Same issue here! I am changing the thumbnail size in the NextGen Settings.
    My thumbnails for the Gallery pages update no problem.
    BUT the thumbnails in Albums stays at 91x68.

  15. GregyPooh
    Member
    Posted 10 months ago #

    rakupa,

    Many thanks for the quick fix!
    It worked for me.

  16. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    Hey all - it's obvious from this thread that we're doing something that is over-riding your specified album thumbnail sizes. My understanding of the issue here is that your album thumbs are ALWAYS the same size right now (91x68) rather than abiding by the thumbnail size settings you've specified in the options.

    If I'm misunderstanding that, please let me know.

    Otherwise, I'm wondering if anyone here would be open to submitting their WordPress and FTP credentials so we can look at what's happening and resolve this? If so, please submit here:

    http://www.nextgen-gallery.com/report-bug/

  17. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    Hey all - I think I was having a brain lapse on this. I see exactly what you're talking about. Looking at this now. (Erick)

  18. photocrati
    Member
    Plugin Author

    Posted 10 months ago #

    Hey all: So, yes, it appears we're hard coding these sizes. That's fine for compact album sizes since those have always been fixed in size, but not for extended albums.

    Changing the CSS for extended albums to the size you want won't resolve this, because the underlying thumbnail is still the same size, which means that you're thumbnail is one size, the CSS is another, and the thumb will be pixelated.

    As @rakupa pointed out, the only quick fix for this to go to this file:

    ../plugins/nextgen-gallery/products/photocrati-nextgen/modules/nextgen_basic_album/adapter.nextgen_basic_album_controller.php

    You'll need to look for these lines (around line 153ish) and change the thumbnail dimensions to what you are looking for:

    // legacy templates expect these dimensions
    $image_gen_params = array(
    'width' => 91,
    'height' => 68,
    'crop' => TRUE

    -
    I will add an issue for this for the developers. We'll need to re-add the logic for this, and think about the best way to do it.

    I'll make this relatively high priority, though I will want to be sure we get through issues that are having more dramatic impacts on people's sites or basic gallery functionality first.

    -
    Again, apologies for being slow on the uptake here. If you have other thoughts or questions, let me know. (Erick)

  19. Jack
    Member
    Posted 10 months ago #

    I just came across this post, while adding a new topic related to this one: http://wordpress.org/support/topic/same-style-and-size-for-gallery-and-album-thumbs?replies=2

    I'm gonna try the code Erick mentioned, but imho it would make more sense to split the options for thumb sizes into gallery thumbs and album thumbs. Those little album thumbs are so tiny...

  20. tizz
    Member
    Posted 10 months ago #

    @Jack You can change those sizes from post editor using the attach to post function.

  21. Marcelo Pedra
    Member
    Posted 9 months ago #

    Hello guys, I'm having the same issue with one site and the solution by photocrati, editing adapter.nextgen_basic_album_controller.php, did the trick.
    By now, I'll try not to upgrade to upcoming versions of the plugin to keep the thumbs in place.
    In the meantime, how can we know when this issue is finally solved?

    Thanks a lot.

  22. baspisa
    Member
    Posted 9 months ago #

    Hi Guys,

    I am a bit surprised by the remark that the compact albums were always fixed in size? I have set my own size for this and it aint 91x68 ;-)

    Any suggestion how i can repair my compact albums as well?

    thanks in advance

  23. Jack
    Member
    Posted 9 months ago #

    @tizz I don't see where I can do this?

    I just upgraded to the latest version and all my album thumbs where back to that tiny default size. I searched for the place where I could set a custom size using the post editor, but ended up with manually adding this again:

    `// legacy templates expect these dimensions
    $image_gen_params = array(
    'width' => 200,
    'height' => 200,
    'crop' => TRUE`

  24. tizz
    Member
    Posted 9 months ago #

    Hi Jack, I don't know if you are talking about extended or compact album. For compact I don't think it's possible via options, for extended one you can set thumbs dimensions via attach to post icon in your album page editor.

  25. Jack
    Member
    Posted 9 months ago #

    I'm using compact. So my (manual) way is the only way for now I guess.
    Thanks for the explanation.

  26. baspisa
    Member
    Posted 9 months ago #

    Jack are your compact albums listening to this:

    // legacy templates expect these dimensions
    $image_gen_params = array(
    'width' => 200,
    'height' => 200,
    'crop' => TRUE

    For me that only works for the extended albums, as i understood the compacts are still hard coded (i expect somewhere in the CSS), but i cant find where.

  27. tizz
    Member
    Posted 9 months ago #

    @baspisa, as said above you don't need changing code for extended album's thumbs size.
    As for the compact, is hardcoded in php I guess, not in CSS.

  28. Jack
    Member
    Posted 9 months ago #

    Yes, hardcoded it is. So after each upgrade I have to add it again to that file.

  29. baspisa
    Member
    Posted 9 months ago #

    @tizz and jack, thanks for your response.

    I am afraid I'll have to have look into it then tonight when I'll get home. Wasn't able to get the thumbs of my extend albums to listen to the back end. It did listen tough to the hard coded change. maybe I messed things up a year ago when i created the templates.

    Any suggestions where to find the original templates so i can check what went wrong ( i am afraid now that I used a compact template and created a new extended from that :-( )

  30. baspisa
    Member
    Posted 9 months ago #

    @tizz, I tried it again. Setting via options does not effect extended albums on my install. The code change as described above does. I also found an entry in a CSS file "nextgen_basic_album.css"

    .ngg-album-compactbox .Thumb {
        margin: 0px !important;
        padding: 0px 0 0 0 !important;
        width: 91px;
        height: 86px;
        border: none;
    }

    I'll have a look later this evening if that will help on the compact albums
    I always used the compact ones also with different thumb sizes in my old nextgen versions. So this all is realy messing up my site.

    any new suggestions are more the welcome. If you gave the time have a look at my test version of the site test.frozentimes.net

    thanks in advance Bas

Reply »

You must log in to post.

About this Plugin

About this Topic