Skip to content

script to iterate through and cache all images in zenphoto from cron

Notifications You must be signed in to change notification settings

benklop/zenphoto-precache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

zenphoto-precache

This python script will, when given correct paths and database information, iterate across all images in your zenphoto gallery and create cached thumbnails and other cached images for them, so it does not need to be done on the fly when the gallery is accessed.

It only caches needed sizes for the current theme and the admin theme, but you can use --themes to specify additional themes you need to cache sizes for.

This may be put into /etc/cron.daily/zenphoto-precache.py or similar to run daily.

Installation

In order to be able to run this script, a few dependencies must be installed first.

To install using pip, pip install phpserialize pyyaml mysql argparse requests

Depending on your distribution, native packages may exist, but pip should work regardless.

About

script to iterate through and cache all images in zenphoto from cron

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages