Jump to:

10844 Posts in 2515 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » cwsoft-foldergallery - image gallery for SilverStripe 3

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2 3 4 5 6 7 8 9 10 11
Go to End
Author Topic: 8890 Views
  • Joop53
    Avatar
    Community Member
    7 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    Hi,

    I have tried several options all included '?flush=all'. Sort is so important to me because all my albums are in chronological order.

    Best regards

  • cwsoft
    Avatar
    Community Member
    55 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    @Joop53: Checked the gallery sort options with the latest cwsoft-foldergallery. All sort options work after flushing the cache. However, the Creation and LastEdited dates are less usefull than I orignially thought, as they reflect the dates when the objects were created/modified in the database and not the creation date of the image itself. As a DB sync is fast, this leads to identical Creation respective LastEdited dates and is therefore not really usefull for sorting purposes.

    Guess this is why you think sorting does not work for you. I checked this by modifying some Image dates in the Database using phpMyAdmin and using the different sort options.

    Will try to implement the ExifDate sort option this weekend, if I find some free time to do it.

    cwsoft

  • cwsoft
    Avatar
    Community Member
    55 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    @Joop53: I added the "sort by ExifDate" option to the 3.x module series.

    To get this working, please follow the steps below:
    - download latest version from GitHub
    - set _config/settings.yml IMAGE_SORT_OPTION to 4
    - invoke /dev/build?flush=all (creates database field Image.ExifDate and takes over YAML settings)
    - save all cwsoft-foldergallery pages in the Backend to write/update the ExifDate fields

    Would be great if you could test this feature and provide some feedback.

    Cheers cwsoft

  • Joop53
    Avatar
    Community Member
    7 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    Hi CWsoft,

    I have tested your work on ss3.1 latest gallery, windows 7, and several browsers. The Exif extension to image is created. Order to exifdate works but when i save a page in CMS it takes a long time en trying to publish the page throws an 'service unavailable' error after almost a minute waiting. The page never gets published. When I use the result of your exif function as a title with a thumb it gives the exif date perfectly.
    I hope this helps

    Best regards

  • Joop53
    Avatar
    Community Member
    7 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    Hi CWsoft

    I investigated the problem some further more and can conclude that my images and albums are the correct size. The problem is less complicated as you should think. All your actions are completed in the database. Only the CMS does not generate a completed code to update the 'published' button before a 'service unavailable error' is generated. When I ignore the error and go to the webpage everything looks fine. When I visite the page again in the CMS the 'published' button shows the correct value.

    Hope this helps,

    Best regards

    PS I (batch)resize the pictures from my camera with Xnview ( 800px) preserving original time and exif data, the result, I upload with your gallery (SS) and exifdata is still present.

  • Joop53
    Avatar
    Community Member
    7 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    Hi,

    Switching the lines has no effect. I don't know if the error is a CMS error or a gallery error. Creating normal pages does not produce the error. When I disable the line '$image->write();' in 'cwsFolderGalleryImageExtension.php' the error disappears but there is no exif sorting ( as expected )
    Running split-mode makes no difference and the problem does not appear in re-saving but in changing and publishing a page.

    Best regards

  • cwsoft
    Avatar
    Community Member
    55 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    @Joop53: Ok, one more trial.

    I changed the EXIF update process to update only images assigned to the page which is saved. This however requires to save all existing foldergallery pages in order to update ALL EXIF dates.

    Could you test if this update makes any changes to you?
    Just download and replace your existing module then set IMAGE_SORT_OPTION to 4 in settings.yml file.

    Have tried now several time to reproduce this error on my local machine without sucess. Tested up to 200 images in one folder without running into time out issues etc. (with both EXIF update methods). Guess the amount of objects updated at once was simply too big on your site, causing a memory or timeout issue. This should be sorted out with the sequential update process by page.

    Cheers

  • Joop53
    Avatar
    Community Member
    7 Posts

    Re: cwsoft-foldergallery - image gallery for SilverStripe 3 Link to this post

    [solved] Sorting on exif date works. Now my albums are sorted by the date the pictures were taken. Fantastic.
    Thanks for your work.

    Best regards

    8890 Views
Page: 1 2 3 4 5 6 7 8 9 10 11
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.