forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 upload => Topic started by: karolyte on September 12, 2011, 06:12:37 pm

Title: original photos
Post by: karolyte on September 12, 2011, 06:12:37 pm
I'm really tired of deleting the orig_ photos with admin tools, every time i add a new photo into my gallery. I'd like to ask if there's some way for the orig_ photo not to create?
Title: Re: original photos
Post by: Stramm on September 12, 2011, 06:19:33 pm
disable watermarking or edit picmgmnt.inc.php

in function add_picture comment out

Code: [Select]
        // create backup of full sized picture if watermark is enabled for full sized pictures
        if (!file_exists($orig) && $CONFIG['enable_watermark'] == '1' && ($CONFIG['which_files_to_watermark'] == 'both' || $CONFIG['which_files_to_watermark'] == 'original'))  {
            if (!copy($image, $orig)) {
                return false;
            } else {
                $work_image = $orig;
            }
        }
Title: Re: original photos
Post by: karolyte on September 12, 2011, 07:59:25 pm
Thank you so much, it worked great:)