Forums

[Plugin: Flickr Gallery] Flickr image size (7 posts)

  1. blueacorn
    Member
    Posted 8 months ago #

    was wondering if there was a way to control which image size from flickr gets displayed in the lightbox? The default 500px is way to small for my needs, let me know if there's an easy way to control this - thanks!

  2. DanCoulter
    Member
    Posted 8 months ago #

    In a future version, I'm going to see if I can get it to detect a large version of the photo before failing back to a medium size. We'll see.

  3. duping812
    Member
    Posted 6 months ago #

    Hi, Dan. I used Flickr Photo Album before but it's not quite updated and hard to integrate to the theme. Not the Flickr Gallery does a very good job.

    I know one can customize the popup image size in Flickr Photo Album. Maybe you can get some help from its documentation or source codes.
    http://code.google.com/p/photo-album/wiki/Documentation

  4. duping812
    Member
    Posted 6 months ago #

    I just find out the trick of the url for differ image size.
    the original name is medium size, then add an underscore and a character for other sizes.
    _s: square, _t: thumbnail, _m: small, _o: large

    hope it will help, Dan :)

  5. DanCoulter
    Member
    Posted 6 months ago #

    _o is not large. It is original. Large is _b. The problem with integrating that into the lightbox is that not all images have a large size and the original sized photo is often too big and entirely unavailable to non-pro accounts. You wouldn't want to rely on an image that might not even be there.

    The only way to find out which larger size to use is to make an extra API call. To do that while the gallery is rendering would take so many API calls that your gallery would take too long to load. To do that when the lightbox pops up would require an Ajax call to your server and then a call to the Flickr API. This method is doable and I am considering it for a future version, but for now, the lightbox is purely Javascript so pulling that info isn't possible.

  6. reinvl
    Member
    Posted 4 months ago #

    Hi, first of all I would like to say that you have a great plugin!

    I definitely need the original size of images in lightbox. I'm a newsphotographer and I show my photos in wordpressposts with the tag-search function from your plugin. I would like to show the full-size uploaded photo (original photo resized to 1024 x 683) in lightbox to my viewers. Please build the extra API call and make an option for it so it won't slow the sites of those who don't use it down.

    Or could you just please tell me how I can manually edit the files to get the same result; the original photos from Flickr viewed in lightbox at 1024 x 683.

    Thanks in advance!

  7. baszero
    Member
    Posted 1 month ago #

    dear all,
    also want to say that the flickr-gallery plugin is just great!
    The only thing I miss is the size option for the lightbox feature in the photoset tag (the thumbnails as such of the gallery are of a well chosen size)

    [flickr-gallery mode="photoset" photoset="72157605870230826"]

    Would it be very difficult to insert an additional parameter for passing the flickr size to use (thumbnail, medium, large, original) ?
    If you could provide a short guideline what needs to be updated, I could maybe do it at my own?

    Let me do a guess: the following line in the flightbox.js is making sure that the "medium" is requested:
    $image.attr("src", $calling.attr("src").replace(/_[stm]\./g, "."));

    So, here we would need to read a parameter value coming from the wordpress plugin options? Or just hardcode for the "large" version?

    Thanks so much,
    cheers
    baszero

Reply

You must log in to post.

About this Topic