coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: itang on March 30, 2005, 05:41:38 PM

Title: Resize all the normal size photos
Post by: itang on March 30, 2005, 05:41:38 PM
I had set the normal size to 800 at the beginning, now, I changed my mind, I want 700 instead.

However, there are about thousands of albums. Is is hard to do in the util.php.

Is there any solution to resize all the normal size photo at a click or a commnad?

I have my coppermine in my own linux box. So I can access the box in different way.

Please suggest any possible method. Thank you all the help.
Title: Re: Resize all the normal size photos
Post by: Nibbler on March 30, 2005, 05:49:24 PM
Tempoarily remove the album restriction, so:

$query = "SELECT * FROM $picturetbl WHERE aid = '$albumid'";

becomes

$query = "SELECT * FROM $picturetbl";
Title: Re: Resize all the normal size photos
Post by: itang on April 01, 2005, 04:35:30 AM
Thanks for Nibbler's reply, it worked. However, you need to do it all at one time operation.

I have 50000+ pictures, how can I make it easier to do? If I do 100 pictures per click, then I need to click 500 times in one operaton. I think I have to sit before the computer for 24 hours without any break.

If there any good suggestion? Thanks everybody who can help.
Title: Re: Resize all the normal size photos
Post by: j00ls on September 03, 2005, 12:30:41 PM
Is there any way to modify the util.php in such a way that the "submit next picture set" button action is automatically called ? (So I dont have to press the button each time?)
Title: Re: Resize all the normal size photos
Post by: j00ls on September 03, 2005, 12:36:29 PM
PS. Or change the execution time to something much more then 30s ? (where and how?)