coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: giorgio79 on February 10, 2007, 01:20:38 PM

Title: Delete original size photos automatically
Post by: giorgio79 on February 10, 2007, 01:20:38 PM
Hello,

Can original photos be deleted automatically after each upload? I am thnking of the equivalent of "Delete original size photos" in admin tools, but an automatic version of it.

I understand that the originals can be reiszed, but they are not deleted, only after I click in admin "delete original size photos"...I just want to have the normal version, and delete right away the original.

What do you think?

Cheers, Gyuri
Title: Re: Delete original size photos automatically
Post by: giorgio79 on February 11, 2007, 03:18:38 PM
maybe it could be setup as a cron job? :)
Title: Re: Delete original size photos automatically
Post by: Stramm on February 11, 2007, 03:26:58 PM
far easier to do in picmgmnt.inc.php

time back I've explained how to do it either in an old modpack announcment thread or in the watermarking mod thread
Title: Re: Delete original size photos automatically
Post by: giorgio79 on February 11, 2007, 05:30:38 PM
Cheers Stramm!

Thank you.

I found this

http://forum.coppermine-gallery.net/index.php?topic=31767.0

will try to mod it , and let you know how it went
Title: Re: Delete original size photos automatically
Post by: giorgio79 on February 11, 2007, 05:38:36 PM
Thanks Stramm!!
I tried it and it works like a charm!

The original is deleted with the unlink function!

Cheers,
Gyuri
Title: Re: Delete original size photos automatically
Post by: rikalaj on December 14, 2007, 05:43:39 AM
Thanks.
It's working. ;D