Zenphoto = Very Slow ?

Hello!

Yes, zenphoto is a very good and easy to use photo album.

But what about the performance?
It seems like it is very very slow, the gallery startpage for me takes about 12 sec to load. I have 11 photo album categories there.

Is this becouse of zenphoto is badly coded or is it becouse something else?

(Almost all plugins are disabled to get better performance.)
(Under folders, if the images are allready cached it is little faster, but kinda slow there also.)

Great program, but slow performance = Not so great right now.

Best regards

:(

Comments

  • vincent3569 Member, Translator
    of course, it will not be a good answer for you, but I have no performance problems.

    My Gallery Stats are following :
    810 Images (99 un-published)
    49 Albums (8 un-published)
    63 Comments
    30 Pages (27 un-published)
    56 News (1 un-published)

    Maybe, this is server side problem ?
  • alper Member
    What sizes are you images? 1MB? 5MB?

    I have about 25.000 photos.
    But does this make sense, they dont load at the same time?

    a folder with 6 photos opens in about 3 sec.
    the startpage with 10 folders (no photos) opens in about 13 sec.

    My server is a windows 7 server with xampps(.com) software.

    Maybe i am running some settings wrong, php memory was on 128MB i have set it to 3GB but that didnt help anything.

    Thank you!
  • acrylian Administrator, Developer
    Again, it is NOT the file size that matters. It is the dimensions:
    http://www.zenphoto.org/news/why-are-some-of-my-thumbnails-sized-images-not-generated-why-does-zenphoto-make-my-server-crash-while-processing-images-

    This is not a limitation of Zenphoto but your server. Zenphoto can only do what the server power can.

    You should set the album thumbnail to a fixed one for each album. Otherwise ZP choses one randomly and given the number of photos it will likely pick an uncached one. That of course then takes time depending of the things noted in the article above.
  • alper Member
    Hmmm..

    I have set all that php.ini settings correct now.

    I know my server is the limit but that dont means the softwares/scripts is working correct :P or? hehe.

    All the thumbnail pictures are set to fixed i am using the theme zpSkeleton.

    And everytime i load the startpage it is the same pictures that is loading - so that is not the problem.

    Wierd that it STILL DONT WORK!!

    I think i need to pay someone to help me with these.

    Thank you for reply!
  • if you do experience performance problems with zenphoto it is a good idea to define a thumbnail image for every album in your albums folder. It's a good idea to take a look at the database, as long as there are no entries in the "thumb" field zenphoto can be really slow. Especially after uploading a lot of images and folders via ftp. But once there is a filename saved in the "thumb" field of every album zenphoto is turning into lightning speed.

    I use this code once after uploading a big amount albums:

    <?php
    $galleryobject = new Gallery();
    $albums = array();
    while(next_album(True)) {
    $albums[] = getAlbumLinkURL();
    }

    // go on deeper here if your folder structure is nested

    foreach ($albums as $album) {
    $albumobject = new Album($galleryobject,$album);
    makeAlbumCurrent($albumobject);
    while(next_image(FALSE,1)) {
    $albumobject->setAlbumThumb($_zp_current_image->filename);
    }
    $albumobject->save();
    }
    ?>

    But be aware that it will probably set new thumbnails for existing albums.
  • alper Member
    Ok, how to define a thumbnail of a folder?

    I have a memory that i have seen that function, but not in the theme i am using right now "zpSkeleton".

    zubizuri:

    I didnt understand where to use that php code, please say where i need to run that.

    Thank you for answer.
  • acrylian Administrator, Developer
    Every album has a selector for that. Best is to choose one of the already exisiting images.
  • alper Member
    I tested to set STATIC choosen thumbs for the albums (not sub-albums) but the startpage is still very slow.

    Maybe 1 sec faster lol :P

    Any other ideas?

    Best regards
  • alper Member
    I think the query images is very slow, maybe its becouse my server have limited the maximium querys for images it can make?
    Any serveradmin have any idea? :D

    This is the speed statistic using theme zpskeleton:

    9sec to open startpage.
    -14 album-thumbs
    -8 small photo-thumbs called "Latest Images".

    5sec to open sub-folder.
    -15 album-thumbs

    Thanks for help!
  • acrylian Administrator, Developer
    gjr's themes are great but just to be sure it is not the theme you should try a standard theme, too.

    Of course you should also try the html static cache.
  • alper Member
    Performance with my buggy setup:

    ...startpage....
    #default theme = 2sec
    >content: 14 big album-thumbs

    #zpskeleton theme = 9sec
    >content: 14 album-thumbs and 8 small photo-thumbs called "Latest Images" this photos are same every loadtest.

    ...sub-folder....
    #default theme = 5sec
    >content: 15 album-thumbs

    #zpskeleton theme = 5sec
    >content: 15 album-thumbs

    I dont know if it is the theme ? ;(
  • alper Member
    I posted a bid on freelancer.com if someone wants to get paid for helping me setup this windows 7 server with faaast zenphoto!

    Here is my bid:

    https://www.freelancer.com/projects/PHP-Script-Install/Zenphoto-Windows-server-performance-slow.html?hash=n96XuwWNWYK0kPi5kHMXsjJC6L6eGTx4Ga4MApjkp20=

    Thank you! =)
  • Did you notice that the guys from zenphoto do offer paid support? Maybe you should ask them!
  • acrylian Administrator, Developer
    He did ask. But his issues seem to be mainly server related and we are no server experts so we cannot help with such configuration issues.
Sign In or Register to comment.