forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: giancarlo64 on October 13, 2011, 05:02:54 pm
-
Hi,
On my server I have saved 190 Gb of pictures (almost 30 years of photos). I have installed (on the same Linux server) coppermine to see it from my clients. Using symlink I have used the already existing photo folders to redirect the album folder of coppermine. The problem is that when I load the images in the albums, coppermine generate the thumbnails and the "normal" photos in my existing directory. I don't want this because the existing folders are synchronized (for backup) to another system using unison. Now unison will backup also the thumbnails. I don't want this.
Is it possible to tell coppermine to generate the thumbnails and the "normal" images locally in his folder and not on the symlinked folder?
Regards
Gian Carlo
-
I forgot to say that I don't want that the original pictures will be manipulated in any way by coppermine, nor deleted. I want to keep my picture folder only readable by coppermine. Now I had to switch to writable to generate the thumbnails. :(
Regards
Gian Carlo
-
It should be possible to tell Coppermine to generate the thumbnails and intermediate-sized images in another folder by adjusting the add_picture function in include/picmgmt.inc.php:
$image = $CONFIG['fullpath'] . $filepath . $filename;
$normal = $CONFIG['fullpath'] . $filepath . $CONFIG['normal_pfx'] . $filename;
$thumb = $CONFIG['fullpath'] . $filepath . $CONFIG['thumb_pfx'] . $filename;
$orig = $CONFIG['fullpath'] . $filepath . $CONFIG['orig_pfx'] . $filename;
Then you'll have to change the functions which loads the thumbnails and intermediate-sized images for the HTML output.
As long as you don't use the admin tools it should work, but I've never tested that.
-
For reference: http://forum.coppermine-gallery.net/index.php/topic,16291.0.html