Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: original photos  (Read 2818 times)

0 Members and 1 Guest are viewing this topic.

karolyte

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
original photos
« 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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: original photos
« Reply #1 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;
            }
        }

karolyte

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 24
Re: original photos
« Reply #2 on: September 12, 2011, 07:59:25 pm »

Thank you so much, it worked great:)
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.