Generating cached images in a different server? (QNAP with zenphoto 1.4.13)

Hello,

I have a QNAP TS-431, with zenphoto installed, and every time I add new photos with hi-resolution (8-15MB files), it takes eternities to create the cached images, and until the images are created, the NAS becomes not accessible. (not via the web interface, and not via SSH, Linux machine)

The guidelines in http://www.zenphoto.org/news/problems-with-albums-and-images/ did not help :(

Now, I have other strong desktop computer running Win7, and I was thinking in using it to generate the cached images.

There are many ways to generate the cache images like:
1) Clone the zenphoto installation.
2) Use a photo editing tool in batch mode to generate them.

If I use the second option, What are the naming conventions?

Then, when I copy the cached images back to the QNAP, What should I run in the QNAP after copying the cached images?

Thanks in advance.

Comments

  • acrylian Administrator, Developer
    What you encounter is - as described on the link you mentioned - a problem of server power and memory with large images. There is a cacheManager plugin available to pre-generate these cached images. Of course the same server limits have effect here. And it will only generate those sizes that are registered properly.

    The cached files follow the options of the `zp-core/i.php` image processor. It will be tough to create these filenames on the outside as the names differ on the options set and which theme/plugins you are using. So the basics of the Basic theme are for example:
    `_.suffix` for a default sized image like `image_100.jpg`
    '<filename>_<size>_cw<cropwidth>_ch<cropheight>_thumb.jpg' for a default thumb like `image_100_cw100_ch100.jpg`
    `filename_w_h.jpg` for a custom sized image like `image_w1200_h900.jpg`.

    There might be less or more of these url parts as you can combine width/height with cropping and also crop position. Best look at the related template functions exactly what you get on the cache folder (or search the theme etc you use for image functions) and then use that as a guide. Any size you miss will be created by Zenphoto.

    You don't need to do anything after uploading these files. Zenphoto will check if there is a cached version of the requested size and use it or otherwise create it. Note that the backend also creates some sizes.
  • Thanks a lot.

    I have the cacheManager running, and for 6 images when trying to generate the "basic" two cached images per image caused my QNAP to go overloaded for already 4 hours.

    I'm going to install zenphoto on my desktop, just downloaded bitnami suite, create an identical zenphoto installation and see how it goes, wish me luck :)

    Have a nice weekend.
  • Update, all the install works, I'm able to generate the cached images (with the same names than in my overloaded QNAP).

    The only think that catch my eye was a warning in the setup:
    `
    PHP gettext() support [is not present]
    Warning!
    Localization of Zenphoto requires native PHP gettext() support
    `
    Now I'm waiting for the QNAP to end its work and test it.
  • acrylian Administrator, Developer
    Glad to hear it generally worked out. That is a warning you can ignore if you don't intend to use Zenphoto in another language than the native (US) English or several languages. See also here: http://www.zenphoto.org/news/multi-lingual-sites/
Sign In or Register to comment.