forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: garypoet on November 24, 2011, 06:41:01 pm

Title: update specific range of intermediate images
Post by: garypoet on November 24, 2011, 06:41:01 pm
hi, i deleted all my intermediate images to free up disk space, and now can rebuild them. but as i have around 7000 images my webhost has a cpu limit which is hit when recreating the intermediates up to around the first 3000.

when the daily cpu limit is reset they have to be rebuilt from the beginning again as i cannot specify to start from where it left off before - so i never reach the end! is it possible to only update a range of intermediate images (eg. the next 3000?)

thanks in advance.
Title: Re: update specific range of intermediate images
Post by: Αndré on November 25, 2011, 12:18:32 pm
The most easiest way may be to re-create them album per album. Depending on the number of albums that may be an annoying task.

If you want to re-create all files, but want to start at file 3000, open util.php, find
Code: [Select]
$startpic = 0;and replace with
Code: [Select]
$startpic = 3000;inside the update_thumbs function.


It would also be possible to adjust the URL in the address bar of your browser. It will show something like
Quote
util.php?numpics=25&startpic=50&albumid=0&autorefresh=1&action=update_thumbs&updatetype=5&form_token=ea3576b6d9113d5ad318d20eeed15006&timestamp=1322219411#admin_tool_thumb_update
But as you need a working form_token / timestamp combination, it's a more tricky part than simply editing the above mentioned file.
Title: Re: update specific range of intermediate images
Post by: garypoet on November 28, 2011, 03:22:48 am
thanks very much! it seems too work well - the images are updated although the file count doesn't quite match the appropriate images - but tweaking the numbers gets you there.

much appreciated.  :)
Title: Re: update specific range of intermediate images
Post by: Αndré on November 28, 2011, 09:26:00 am
Please
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.