support NEF/ARW/DNG raw formats and zero-padded image IDs#130
Open
ManuelOsburg wants to merge 1 commit into
Open
support NEF/ARW/DNG raw formats and zero-padded image IDs#130ManuelOsburg wants to merge 1 commit into
ManuelOsburg wants to merge 1 commit into
Conversation
Adopted and reworked from the annatroff/LEDSAwindows fork:
- extend the raw format whitelist in image_reading by .NEF, .ARW and
.DNG (rawpy reads them already; EXIF works with the existing exiv2
binding) and raise a clear ValueError for unsupported extensions
instead of failing with UnboundLocalError
- fix a path bug in ConfigData.get_start_time where directory and file
name were concatenated without a separator inside os.path.join
- add image_handling.format_img_name and use it wherever image names
are built from the config template: plain {} placeholders now keep
zero-padded IDs such as '0001' (DSC_0001.NEF), while numeric format
specs like {:04d} still receive an integer
The int() casts previously applied before formatting broke camera
series with zero-padded file counters. Unit tests cover the extension
routing and both formatting paths.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopted and reworked from the annatroff/LEDSAwindows fork:
The int() casts previously applied before formatting broke camera series with zero-padded file counters. Unit tests cover the extension routing and both formatting paths.