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

Image import: Make Exif handling more tolerant, better info,... #383

Closed
wants to merge 1 commit into from

Conversation

sfuchs79
Copy link
Contributor

@sfuchs79 sfuchs79 commented May 5, 2017

This is for the moment the most lightweigth fix for #370 and it is imho even good enought to keep it for a long time until s.o. want's to improve this further. This statement is for sure based on my assumption that most users will have JPG pictures. For TIFF with Exif info this for sure doesn't realy improve the situation but it also doesn't make it worse.

Regarding the exif.cpp change: A think the sanity check for the JPG EOI has no added value because later in the processing there is also the check for correct Exif data.

Changes to the "Add pictures to dive" function:
- Make Exif handling more tolerant by removing the JPG sanity
  check for EOI
- Give info to user if exif.cpp can't identify a Exif date/time
- Restrict file dialog filter for correct picture time by DC photo
  to JPG because Exif is only available from JPG

Signed-off-by: Stefan Fuchs <[email protected]>
@mention-bot
Copy link

@sfuchs79, thanks for your PR! By analyzing the history of the files in this pull request, we identified @dirkhh, @tcanabrava and @atdotde to be potential reviewers.

@mturkia
Copy link
Collaborator

mturkia commented May 5, 2017

How about adding a test case that ensures one of your nok images is parsed properly. I am quite sure, we are going to update the exif.cpp from upstream at some point, and it would be nice to notice the breakage immediately if the upstream has not taken the trailer in JPEGs into account at that time.

Of course, this makes sense only if Dirk is willing to take this patch :)

@atdotde atdotde mentioned this pull request May 5, 2017
@sfuchs79
Copy link
Contributor Author

sfuchs79 commented May 6, 2017

@atdotde added s.th. nice on top of this and created a new PR -> pull Roberts!

@sfuchs79 sfuchs79 closed this May 6, 2017
@sfuchs79 sfuchs79 deleted the bugfix_exif_handling branch May 6, 2017 19:46
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.

3 participants