10931 Posts in 2614 Topics by 1810 members
|Go to End||Next >|
30 May 2013 at 1:41am
I have tried several options all included '?flush=all'. Sort is so important to me because all my albums are in chronological order.
30 May 2013 at 4:28am Last edited: 1 June 2013 10:59pm
@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.
31 May 2013 at 7:23am Last edited: 1 June 2013 10:57pm
@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.
31 May 2013 at 10:48pm
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
1 June 2013 at 12:23am Last edited: 1 June 2013 12:31am
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,
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.
1 June 2013 at 3:56am
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.
1 June 2013 at 4:28am Last edited: 1 June 2013 11:03pm
@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.
2 June 2013 at 8:55pm
[solved] Sorting on exif date works. Now my albums are sorted by the date the pictures were taken. Fantastic.
Thanks for your work.
|Go to Top||Next >|