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

[request] add a "original" parameter to the --format switch #8

Open
Box333 opened this issue Nov 21, 2024 · 5 comments
Open

[request] add a "original" parameter to the --format switch #8

Box333 opened this issue Nov 21, 2024 · 5 comments

Comments

@Box333
Copy link

Box333 commented Nov 21, 2024

Hello,
could you also add a "original" parameter to the --format switch, so that the photos can be extracted to their original folder structure \Media\DCIM\101APPLE, \Media\DCIM\102APPLE ...etc?
Thanks

@joz-k
Copy link
Owner

joz-k commented Nov 21, 2024

This is certainly possible. However, "Media/DCIM" is always the same, so there may be no need to replicate it in the output structure. By the way, what is a use case for this? I've never found these "101APPLE", "102APPLE" folders useful and end users and now very rarely exposed to them.

@Box333
Copy link
Author

Box333 commented Nov 25, 2024

the IMG FIles have only 4 digits: IMG_1234, this means when you reach 10000 fotos, the counter is reset and it begins with IMG_0001. in each xxxAPPLE folder are max 2000 images 1-1999, 2000-3999 ... and so on..

@joz-k
Copy link
Owner

joz-k commented Nov 26, 2024

Ah, I realize that xxxAPPLE folders are there to distribute photos into subfolders for various technical reasons. I was rather asking why a user would find it useful to replicate this hierarchy in an exported structure? From a user perspective, I never found it useful. In other words, why would it make sense to have this feature?

@Box333
Copy link
Author

Box333 commented Nov 27, 2024

to keep the original

@rb0022
Copy link

rb0022 commented Jan 4, 2025

@joz-k I do agree with @Box333 , I have seen the technical directory name can change between iPhones and in which case the following would be useful for some users.

Although I would probably consider it under a different operator that is distinct from the "directory name format" (i.e. --format) or the "file name format" (i.e. --prepend-date). Perhaps something like --export-flags that accepts a list of parameters (when present, parameter is true).

Example:

# --export-flags set_orig_parent_dir_name,xxx,yyy,zzz

\DCIM\
└── 101APPLE
    └── 2020-01
        └── 2020_01_01_IMG_0000.jpg
└── 102APPLE
    └── 2025-01
        └── 2025_01_01_IMG_2000.jpg

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

No branches or pull requests

3 participants