-
Notifications
You must be signed in to change notification settings - Fork 114
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
Crop Panasonic G9 images using vendor metadata #490
Conversation
ba3f840
to
1db981d
Compare
Github suggests this isn't rebased properly. |
I know. My original intention has been to test it against DT 4.2.1 because that's what I use, hence the rebase. I'll put it back later. |
8ec6e31
to
d6be4fe
Compare
Ok, it appears to work as intended with DT 4.2.1. Rebased back onto develop. |
d6be4fe
to
b19d0c1
Compare
8195861
to
93bbe3d
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #490 +/- ##
===========================================
- Coverage 59.07% 59.05% -0.02%
===========================================
Files 232 232
Lines 13888 13912 +24
Branches 1945 1951 +6
===========================================
+ Hits 8204 8216 +12
- Misses 5551 5565 +14
+ Partials 133 131 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
6bb576a
to
afbe454
Compare
This is supposed to fix darktable-org#170 and help prepare other related fixes. Now the decoders can decide whether to supply their own crop data when the Crop tag in a camera.xml entry is empty or absent. Rw2Decoder has been updated to leverage this new ability, and the Crop tags for Panasonic G9 entries have been removed.
afbe454
to
302a284
Compare
Thanks for looking into this! I do think something like this is needed, but:
(I don't know the answer to these questions, this isn't a recommendation.) Thoughts? |
The most problematic thing here is in fact to figure out the mode, as here are many combinations of how you can shoot. What I was addressing here was primarily my issue with hi-res pixel shift mode and some of the burst modes. I wasn't able to figure it out just by looking at the metadata. I would have to take the camera and literally try out every single setting to make a note about the crop. And then maybe a software update would come out and I would have to start over to make sure they didn't change anything related. And even then I could get it wrong without some serious pixel peeping. It's definitely not the only camera affected. There was this issue with a Panasonic camera, I think LX7, which seemed to crop raw files when using digital zoom. I can only provide knowledge regarding the G9 and the GX80 Panasonic cameras. And lend a hand in checking the available samples of the other models. Until then, falling back to vendor settings could provide a fast hotfix whenever someone comes up with a similar issue. |
Will this get merged, or shall I do something more with this fix? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Sorry for the silence, i suppose this is better than what we do now :)
High-level, the particular approach feels somewhat wrong,
i mean, how do those with applyCrop = false
deal with this?
But that is not a blocker i suppose.
This is supposed to fix #170 and help prepare other related fixes.
Now the decoders can decide whether to supply their own crop data when the
Crop
tag in acamera.xml
entry is empty or absent.Rw2Decoder
has been updated to leverage this new ability, and theCrop
tags for Panasonic G9 entries have been removed.