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

please add file name as metadata #394

Open
alexlib opened this issue Aug 23, 2021 · 2 comments
Open

please add file name as metadata #394

alexlib opened this issue Aug 23, 2021 · 2 comments

Comments

@alexlib
Copy link

alexlib commented Aug 23, 2021

Thanks for the great package. It works great. However, sometimes I read sequence in a folder numbered not from 0, but some arbitrary number and in some arbitrary name form, e.g. _cam_N_M.png where both N and M are integers, typically N = 1..10 and M = some range of integers, but not starting from 0. There are two things that I'm not sure about:
a) how are the sequences are sorted, i.e. is it first by the value of N and then by M ?
b) it would be quite easy to figure out if the frames would carry a metadata with a filename.

Thanks in advance for this extension

@alexlib
Copy link
Author

alexlib commented Aug 23, 2021

I found that I can use ImageSequence._filepaths to get the list of files. It's basically sufficient for my case.

@nkeim
Copy link
Contributor

nkeim commented Aug 23, 2021

Thanks. I'm surprised that ImageSequence doesn't expose the filenames more publicly; PIMS already has the infrastructure to do that (via propagate_attrs) in a way that follows slicing of sequences. I'm going to reopen this because it seems like a pretty good feature request!

@nkeim nkeim reopened this Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants