![]() |
|
regenerate thumbnails in cache via script - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: regenerate thumbnails in cache via script (/thread-1111.html) |
regenerate thumbnails in cache via script - scorch - 2007-02-01 i'd like to be able to trigger thumbnail creation via script, after adding a large number of files, to save generating them on the fly. with over 10GB of images & adding about 1GB per month, it makes sense to be able to do this in advance, to keep load down regenerate thumbnails in cache via script - trisweb - 2007-02-02 Quite easy. This will load a page of all thumbnails and default-sized images in your gallery: ` ` regenerate thumbnails in cache via script - scorch - 2007-02-03 thanks! I dropped this in zen/* with all the other bits as rebuild.php, stripped out the zen/ path header & ran it, with a ."\n" at the end of the echo line for readability: php rebuild.php regenerate thumbnails in cache via script - trisweb - 2007-02-03 Oh right, that may help.... heh. Try this (Improved in other ways as well): ` ` regenerate thumbnails in cache via script - scorch - 2007-02-13 that works nicely thanks - but only if it's under zenphoto/rebuild.php is it possible to change to run from zephoto/zen/ & then leave it in SVN? that would be a useful addition. e.g. as http://muse.net.nz/zenphoto/zen/rebuild.php regenerate thumbnails in cache via script - trisweb - 2007-02-13 To change it for that, just take the regenerate thumbnails in cache via script - scorch - 2007-02-23 thanks! just a point - this takes hours to run through. if you ever move it into svn, it would be a good move to add it as a button to a folder level "regenerate" for example. regenerate thumbnails in cache via script - permesso - 2007-07-09 Sorry to revive an old thread but I am really looking for this functionality but I heavily use sub-albums and this script is not decending into the sub-albums. Is there a quick change to the script that would help? Thanks in advance. regenerate thumbnails in cache via script - edasque - 2007-08-27 same here, any hope for a recursive version of this ? regenerate thumbnails in cache via script - aitf311 - 2007-08-30 Anyone figure out a way to get this working for subalbums yet? This would be a very useful script to have in the admin page. regenerate thumbnails in cache via script - sbillard - 2007-09-02 Here is a routine which will do what you want. Copy it into your zen folder with the rest of the php files. Then point your browser to it. ` ` If you don't want to do your whole gallery, just pass the file an album parameter with the name of the album you wish to process. e.g. http://myalbum.zenphoto.com/zenphoto/zen/loadAlbums.php?album=newalbum regenerate thumbnails in cache via script - grantonstar - 2009-01-15 I'm using the latest script from sbillard on zenphoto 1.2.2. getNumImages() returns the count of images for each album but next_image() doesn't seem to be returning any images. Any ideas why? Does anyone have an updated cache script? (I need it for my gallery migration) Thanks, grantonstar regenerate thumbnails in cache via script - sbillard - 2009-01-15 1.1.2 has the pre-cache images utility, why don't you use that. regenerate thumbnails in cache via script - grantonstar - 2009-01-16 THe main reason why is because it is unable to cache 17k images at once. Either it times out or the browser crashes. The reason I want to pre-cache is to run the Gallery migration utility. regenerate thumbnails in cache via script - sbillard - 2009-01-16 Pre-cache by album/subalbum. What makes you think the above script will not also time out? It is, after all, basically the same code as the pre-cache utility. regenerate thumbnails in cache via script - nonzero - 2013-04-19 Are there any includes or bootstrapping code I need to add to the script to run it from the command line of the web server rather than through a browser? I'm working with images that are hundreds of MB, and I'm not allowed to change the web server's memory limits, but I can override the PHP memory limit on the command line. regenerate thumbnails in cache via script - acrylian - 2013-04-19 This topic is really old. Zenphoto features a cache_manager plugin that took over the older precache functionality. regenerate thumbnails in cache via script - acrylian - 2013-04-19 This topic is really old. Zenphoto features a cache_manager plugin that took over the older precache functionality. |