• Resolved holgerka

    (@holgerka)


    Hi Sayontan!

    Thanks for adding backend side authorisation for flickr some months ago. Works great for me.
    My question or feature request today is:
    I use lightgallery and have a download link displayed in the upper right corner.
    Current behaviour: When I click the download link it will download the image in its current resolution.
    Behaviour I would like to offer: Users click the download link and flickrs original size version of the image gets downloaded.
    Or: A way to offer a original size download per thumbnail on the grid with the pictures of my album directly. I am using [gallery type='flickr' photoset_id='XXX'].

    Usecase: Members of our association would like to be able to download full res. images to make prints etc. The images are hosted at flickr with privacy set to “private”. So I cannot just link them to flickr directly (which your plugin offers), as they would need a flickr login and I would need to add each of them as friend.

    The password to access the demo is ‘photonic’

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Actually this was on my list to do for version 1.68, but I was in a bit of a rush to push out the Google Photos integration so I gave this a skip. You can do the following for now, and I will include it in the next release.

    To do this, go to line 632 of wp-content/plugins/photonic/extensions/Photonic_Flickr_Processor.php. You will see this:

    $photo_object['download'] = substr($photo_object['main_image'], 0, strlen($photo_object['main_image'])-4).'_d'.substr($photo_object['main_image'], -4);

    Change it to this:

    $download = $this->find_largest_image($photo);
    $photo_object['download'] = substr($download, 0, strlen($download)-4).'_d'.substr($download, -4);

    Let me know if this doesn’t work.

    Thread Starter holgerka

    (@holgerka)

    Thank you – it works. Great!
    of course the next feature request is obviously: provide “download all” Button on Album pages (the page where the photos from an album are printed directly on the page) to faciliate download procedure for users who want to download all images in an album.
    Cheers,

    Holger

    Plugin Author Sayontan Sinha

    (@sayontan)

    That cannot be done as there is no provision in Flickr’s API that provides you with a link for all photos in one bundle. It is also not possible to custom-build such functionality as it will significantly affect performance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Provide download of “original size” images’ is closed to new replies.