original photos original photos
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

original photos

Started by karolyte, September 12, 2011, 06:12:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

karolyte

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?

Stramm

disable watermarking or edit picmgmnt.inc.php

in function add_picture comment out

        // 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;
            }
        }

karolyte

Thank you so much, it worked great:)