• Resolved beroot.ch – Photography

    (@berootch-photography)


    Hi Webaware

    Many thank for your Plugin ?? I’m an photographer and need the ability for my customers, that they can download the images in HiRes and for the gallery they should be able to scroll fast through the gallery.
    Now i uploaded the HiRes images to the server and check the checkbox for automatic resize in NextGen Gallery under other options. And now NextGen will create a new file with a smaller size this will let me scroll fast through the gallery and create an file with _backup this file is my HiRes image.
    And now i add some code in your plugin this let me download this _backup files and rename it to .orig.jpg
    And my customers can download the HiRes image ??
    Now i want to share the code with the community, maybe some other can use the code or you can add it to your plugin ??

    class.NextGENDownloadGallery.php

    Line 381

    if ($image) {
    		$FullImagePath = apply_filters('ngg_dlgallery_image_path', $image->imagePath, $image);
    		$FilenameNew = basename($FullImagePath);
    		$PathParts = pathinfo($FullImagePath);
    		$FullImagePathOriginal = $FullImagePath.'_backup';
    		if(file_exists($FullImagePathOriginal))
    		{
    			$FilenameNew = $PathParts['filename'].'.orig.'.$PathParts['extension'];
    			$FullImagePath = $FullImagePathOriginal;
    		}
    
    		$files[] = array(
    		PCLZIP_ATT_FILE_NAME => $FullImagePath,
    		PCLZIP_ATT_FILE_NEW_FULL_NAME => sanitize_file_name(strtr($gallery, ',', '-')).'/'.$FilenameNew,
    		);
    
    		}

    Regards
    Kevin

    https://www.ads-software.com/plugins/nextgen-download-gallery/

Viewing 1 replies (of 1 total)
  • Plugin Author webaware

    (@webaware)

    G’day Kevin,

    Thanks for your contribution, I’ll try to work it into a future version of the plugin!

    cheers,
    Ross

Viewing 1 replies (of 1 total)
  • The topic ‘HiRes Download’ is closed to new replies.