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: Auto-reduce file size after uploading  (Read 3008 times)

0 Members and 1 Guest are viewing this topic.

FreeMail

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 67
    • http://www.myphotodb.com
Auto-reduce file size after uploading
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Auto-reduce file size after uploading
« Reply #1 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
Logged

FreeMail

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 67
    • http://www.myphotodb.com
Auto-reduce file size after uploading
« Reply #2 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!
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Auto-reduce file size after uploading
« Reply #3 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.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

FreeMail

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 67
    • http://www.myphotodb.com
Auto-reduce file size after uploading
« Reply #4 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!
Logged

FreeMail

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 67
    • http://www.myphotodb.com
Auto-reduce file size after uploading
« Reply #5 on: February 21, 2004, 01:26:09 pm »

any idea what went wrong?
 

 :roll:
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 14 queries.