Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #4964: ordered images by timestamp #5189

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

JesusMurguia
Copy link

Fixes #4964

Ordered the images by timestamp when they come from external sources (share button)

@Ayan-10
Copy link
Contributor

Ayan-10 commented Mar 24, 2023

I think someone else is assigned to this mentioned issue. Is it @nicolas-raoul ?

@nicolas-raoul
Copy link
Member

nicolas-raoul commented Mar 25, 2023

@JesusMurguia Can you please ask at #4964 to be assigned? With GitHub I can technically not assign you unless you comment on the issue. Thanks!

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tried and strangely the pictures are presented in the opposite of the historical order: Last to first. Was it working in your tests? Maybe the order gets mixed up later? Or maybe just inverse the order? Or maybe file timestamp are not reliable and we should instead rely on EXIF dates?

@nicolas-raoul
Copy link
Member

By the way thanks for switching to Timber, that's perfect!

@JesusMurguia
Copy link
Author

I just tried and strangely the pictures are presented in the opposite of the historical order: Last to first. Was it working in your tests? Maybe the order gets mixed up later? Or maybe just inverse the order? Or maybe file timestamp are not reliable and we should instead rely on EXIF dates?

Yeah, I just left the order in the opposite way because I was testing both directions. I changed it to the right order now, my bad!

@nicolas-raoul
Copy link
Member

I took 4 pictures of a clock with the seconds on 1, 2 , 3, 4 in order.

With this pull request, when selecting the 4 pictures with the normal picker they are not in order. Same with custom picker. Any idea why?

Screenshot_20230331-224231
Screenshot_20230331-224321

@JesusMurguia
Copy link
Author

The changes only affect the images coming from external sources like the share button on the gallery, because these images don't respect the selection order, when using the normal and custom picker from inside the app, the images are sorted by selection order, I did it this way because the issue was referring specifically to this uploading method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Order of images does not persist
3 participants