symlink symlink
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

symlink

Started by giancarlo64, October 13, 2011, 05:02:54 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

giancarlo64

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

giancarlo64

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

Αndré

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.

Αndré