coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: FreeMail on February 18, 2004, 11:15:13 AM

Title: Auto-reduce file size after uploading
Post by: FreeMail on February 18, 2004, 11:15:13 AM
Quote@FreeMail: don't hijack other's threads! Out-of-the-box, this is not possible, but you can reduce the allowed filesize per upload and you can set the compression level and pixel size, which will result in approximately the same thing: your pics will all have similar file sizes (within a certain range, depending on your settings) - no need to restrict the exact file size. If your question was "can coppermine be set up to dynamically reduce resolution or increase compression from pic to pic", then the answer is "no" imo.

GauGau

This is from the other thread.

my concern is, can CPG automatically reduce the file size of file that are uploaded by users and delete the original file with big file size? this is to let newbie users with no photo editting software background (to reduce and scale their pictures) to be able to upload and not consume their upload space right away.

TIA!
Title: Auto-reduce file size after uploading
Post by: Joachim Müller on February 19, 2004, 07:18:10 AM
Coppermine creates the intermediates when adding pics to the gallery, so you could get rid of the full-sized pics using the "resize pictures" function from the admin menu ("Delete original size photos").

GauGau
Title: Auto-reduce file size after uploading
Post by: FreeMail on February 19, 2004, 11:00:00 AM
Thanks a lot! :)  i think thats a good utility :)  can we make it automatic to all uploads? ;)

TIA!
Title: Auto-reduce file size after uploading
Post by: Casper on February 19, 2004, 11:11:13 AM
It will probably be possible to change include/picmgmt.inc.php to remove the original image, if an intermediate has been created.

This however, is beyond me, so perhaps a coder can help you with this one.
Title: Auto-reduce file size after uploading
Post by: FreeMail on February 19, 2004, 05:35:00 PM
Quote from: "casper"It will probably be possible to change include/picmgmt.inc.php to remove the original image, if an intermediate has been created.

This however, is beyond me, so perhaps a coder can help you with this one.


when i used the "Delete original size photos" utility, i noticed some 'normal size' picture didn't show up when i clicked the thumbnail, do we need to do something first before we delete the original size photos?

TIA!
Title: Auto-reduce file size after uploading
Post by: FreeMail on February 21, 2004, 01:26:09 PM
any idea what went wrong?
 

 :roll: