To post a new support question, click the Post New Topic button below.
Current Version: 4.8.5 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Sorting Order For Uploaded Photos In Galleries Went Haywire

A
74 posts
Mon Jan 14, 19 11:01 AM CST
Hi there,

I just uploaded the first batch of images in a new category for this year and strangely enough the photos in all the sub galleries are appearing in a completely random order. I have to manually select each gallery and rearrange them for filename ascending.

Any idea why this happens now? I used to upload the photos via Chrome but switched to Opera now, my this be an issue?
16,148 posts (admin)
Mon Jan 14, 19 12:11 PM CST
If you are using the uploader in the admin, the photos are going to be sorted in the order they are UPLOADED. So it will be in the order they are on your computer when you select to upload them. Maybe you need to check the order when selecting the photos in the upload dialog. Might have to change it to sort by filename.

Or if you are upload with FTP, it could be the way you have your file names.

When naming your images, you will want to use leading zeros in the numbers. For example: 0001, 0002, 0010, 0012, 0100, etc. When you names them like 1,2,3,10,11,20,21,100,101,etc, the server will most likely order them as 1,10, 100, 101, 2, 20, 21 ? which we don't want.

So for that reason, your image file names should have leading zeros. If the image filename also has a letter, you will still want to use leading zeros

Img_0001, img_0010, etc?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Mon Jan 28, 19 9:50 AM CST
Hi Tim,

thanks for the reply. I am uploading through admin and all the photos are named like 123_45678. However the system for example sorts 181_3714 before 181_0786. Why? They are definitely not sorted like that on my computer, everything is by filename.
16,148 posts (admin)
Mon Jan 28, 19 12:09 PM CST
I just tested by renaming a bunch of photos like 181_0786, 181_3714, 181_2115, etc... and uploaded them by selecting all, and also within subfolders ... on 3 different sites, using the uploader and also FTP and all were uploaded in the correct order. I also did the rearrange by file name and put them in the correct order as well.

Are you sure you don't have some that are 4 characters like 181_1234 and some that are 5 like 181_12345?

The way you are naming them works for me.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Mon Jan 28, 19 1:04 PM CST
Yes I am sure, in this batch there are only 4 digit names.

Is there a possibility that this is based on the browser? I recently switched from Chrome to Opera and can't recall having this issue before. How can a different browser affect that?
16,148 posts (admin)
Mon Jan 28, 19 1:16 PM CST
I don't think it would be the browser but I guess possible. I did test in Opera too and all uploaded in order.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Tue Jan 29, 19 5:58 AM CST
Well then what is wrong and how can I resolve that?

Edit: I also checked with Safari and the result is the same.
Edited Tue Jan 29, 19 6:13 AM by Alex Gerner
16,148 posts (admin)
Tue Jan 29, 19 8:05 AM CST
I have no idea what it would be. I did a lot of testing and everything works as expected for me. Photos are uploaded in the order they are selected.

You can email me the link to your Sytist admin with the username and password and the name of a gallery doing this and I can take a look.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
P
7 posts
Sun Apr 11, 21 2:10 PM CST
I'm having this issue, too, Tim. With one client it seemed like it only happened on the first show of 2021 (new section) and once the first gallery was "re-arranged" there was no further issue.

But this weekend (with a different client) it's the 2nd show and it's happening again - in EVERY gallery.

"File name, ascending" has always been the default. I'm uploading from within Sytist, and using "create folder" option. The files names are the same length and in numerical sequence within the folder.

Is there another spot I need to check for the default?

Pj

Attached Photos

16,148 posts (admin)
Mon Apr 12, 21 6:21 AM CST
The first screenshot has nothing to do with the sorting of the photos uploaded. That is the default order when viewing the All Photos section.

Sytist is going to process the photos in the order they are listed on the server. I have never been able to reproduce the photos not being processed in order by filename. I guess it is something on the server but I have no idea why especially since I can never duplicate it happening.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Mon Apr 11, 22 1:21 PM CST
I have just now purchased the newest update for Sytist in the hope to remedy the situation but it still is the same on my installation of Sytist. I even checked on an iPad and it does the same.

As far as I can gather, the upload on my ancient Mac Mini still works in the correct order but I don't know why as it runs on the same operating system as the equally ancient Macbook Pro I am writing these lines on.

Edit: wrong, last time I uploaded photos I did from the Mac Mini and it was all over it, too.

It would help to have a setting to set the sort order recursively on the parent gallery.
Edited Mon Apr 11, 22 1:33 PM by Alex Gerner
A
74 posts
Mon Apr 11, 22 4:06 PM CST
So I went through the trouble to install Linux Mint inside VirtualBox on said Macbook Pro and it's still the same. I don't think it is client related but either a Sytist or server misconfiguration. As I did not change anything on the server side over the years that leaves not a lot of room for failure.

Also I have all the sub galleries numbered and there it is a mess, too, so that I have to rearrange them all after the upload for each category. On the recent event I am working on I would need to go through over 650 folders of participants and click on rearrange by filename ascending to have everything in order which is absolutely unfeasible.
Edited Mon Apr 11, 22 4:41 PM by Alex Gerner
16,148 posts (admin)
Tue Apr 12, 22 5:50 AM CST
Completed for the next update that should be coming out this month:

Added the option to automatically arrange the photos by file name ascending in sub galleries when uploading folders for sub galleries into the main gallery for when the upload does not upload the photos in order (bug in Apple computers). To implement this, edit your config file (Settings then underneath the left menu edit config file) and on a blank line before the closing PHP tag which is ?> add this line of code:

$setup['reorder_photos_after_upload'] = true;

Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Tue Apr 12, 22 11:25 AM CST
Thank you Tim. So if I understand it correctly I shall wait for the next update and then inject the code? Are you sure it is a bug with Apple computers? How come that bug is still persistent in a Linux virtual machine?
D
31 posts
Wed Apr 20, 22 6:26 PM CST
I was having this problem until I finally gave up and started using FTP exclusively, since it fits my workflow better anyway.

But if my memory is correct, the problem seemed to occur when I was uploading multiple folders with the directory structure option checked.

Are you uploading multiple folders? If so, do an experiment with only images directly into your upload folder. (I'm not saying this is the solution, just a clue to where the problem might be.)
A
74 posts
Fri Apr 22, 22 3:27 AM CST
Yeah, this is exactly what is happening here with the upload of whole file structures. It worked for a while, then only with one specific machine (an older Apple Mini with an old operating system) but now no luck on any of these.

Uploading photos directly into the folders has the same effect, no sort order whatsoever.

What do you mean with FTP? Do you upload via FTP and then inject them into the Sytist system?
A
74 posts
Tue May 03, 22 6:21 AM CST
So thanks Tim for adding the functionality to sort photos by file name after upload. It says that it will automatically do that once upload is complete. Is there a possibility to let the system do that on a per gallery basis?
16,148 posts (admin)
Tue May 03, 22 8:00 AM CST
If it is enabled it will do it after every upload.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Tue May 03, 22 8:03 AM CST
Well, yes but only with the newly uploaded photos or with every gallery that is already existing on the server? If only for the photos uploaded it would be nice to have the function to let the server sort the photos which are already online.
A
74 posts
Tue May 03, 22 9:20 AM CST
I have just uploaded a batch of photos (just one folder, no subfolders) and it still is completely random, no difference to before.
16,148 posts (admin)
Tue May 03, 22 11:43 AM CST
Did you enable that option before uploading in Settings -> Photo Settings?
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Wed May 04, 22 8:41 AM CST
Of course I did.
16,148 posts (admin)
Thu May 05, 22 4:38 AM CST
Are you checking "Upload folders to create sub galleries" when uploading photos and are you uploading sub galleries? I have tested many times and always works for me.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
A
74 posts
Thu May 05, 22 9:47 AM CST
Yes, I do both. This time I uploaded „only“ one folder with photos and no subfolders and it did not work. Does it only work with folder structures? Can you implant a functionality to start the sorting process on a per gallery base for individual galleries? That would be awesome.
16,148 posts (admin)
Thu May 05, 22 11:15 AM CST
It only does it when there are sub galleries. "Arrange Order of Photos & Sub Galleries After Upload By Name Ascending"

If you are not uploading folders for sub galleries, don't check the "Upload folders to create sub galleries" option when uploaded and they will upload in order.
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
25 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 1,490 times
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close