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

add ability to use exif data for paths when importing from a camera #793

Merged
merged 1 commit into from
Oct 4, 2016

Conversation

jakeprobst
Copy link
Contributor

So I am really bad at git and when I was trying to get the previous pull request to merge I deleted the entire branch. 4th times the charm, or something.
#759 http://www.darktable.org/redmine/issues/8415

@jakeprobst jakeprobst force-pushed the importexif branch 2 times, most recently from c04b51b to 959fc1c Compare January 5, 2015 19:06
@TurboGit TurboGit added the feature: enhancement current features to improve label Jun 21, 2015
@hokieengr
Copy link

Did this ever get merged into master? I also have a vested interest in making this work as not having it really complicates my workflow. Thank you!

@jakeprobst
Copy link
Contributor Author

It was never merged as far as I know.
I'll update this pull request if I can get some confirmation that it'll actually be merged.

@LebedevRI
Copy link
Member

Since we are already in freeze, it definitely won't be merged at least until after 2.0 release :(
As for confirmation, you'd need to "stalk" :) us in IRC channel some time after 2.0 release, so that it does not get forget...

@jakeprobst
Copy link
Contributor Author

well, someone post in this thread when I should work on this so I get an email to remind me.

@hokieengr
Copy link

Thank you both for your quick responses. Jake: Any chance you could sync up your fork with the latest master so we can at least use your work until it actually gets merged? I pulled it tonight and did have to manually merge exif.cc with the latest version to get it all to build. The rest of the files appeared to merge without issue.

Thanks again.

@bbinet
Copy link

bbinet commented Oct 16, 2015

I'm also very interested in this feature: too bad it cannot be merged for the upcoming 2.0 release.

@bbinet
Copy link

bbinet commented Dec 27, 2015

@jakeprobst, as you had requested, if you want to update your pull request: darktable 2.0 has just been released with a bunch of great new features! https://www.darktable.org/2015/12/darktable-2-0-released/

@LebedevRI
Copy link
Member

We really must merge this PR before next major release :)

@LebedevRI LebedevRI added this to the 2.1 milestone Dec 31, 2015
@hokieengr
Copy link

Agreed!

On Thu, Dec 31, 2015 at 12:32 PM, Roman Lebedev notifications@github.com
wrote:

We really must merge this PR before next major release :)


Reply to this email directly or view it on GitHub
#793 (comment)
.

@jakeprobst
Copy link
Contributor Author

Ok it should be good to merge now.

size_t size;

gp_file_new(&camfile);
gp_camera_file_get(cam->gpcam, folder, filename, GP_FILE_TYPE_NORMAL, camfile, NULL);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In all other places return value of gp_camera_file_get() is checked

@jakeprobst
Copy link
Contributor Author

updated

@@ -874,7 +876,23 @@ gboolean _camera_initialize(const dt_camctl_t *c, dt_camera_t *cam)
return TRUE;
}


time_t _get_exif_time_from_data(uint8_t* data, unsigned long size)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs to be static

@jakeprobst
Copy link
Contributor Author

updated
turns out _camera_change_exif_time wasn't even used.

@bbinet
Copy link

bbinet commented Feb 22, 2016

any chance this can be merged soon?

@hokieengr
Copy link

Did this ever get merged?

static time_t _get_exif_time_from_data(uint8_t* data, unsigned long size)
{
dt_image_t img;
dt_exif_read_from_blob(&img, data, size);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't use that, it has side effects, like writing stuff to database. Instead add something like dt_exif_get_datetime() to common/exif.cc which does things similar to dt_exif_get_color_space().

dt_print(DT_DEBUG_CAMCTL, "[camera_control] import failed: %s\n", gp_result_as_string(res));
continue;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be a good place to g_file_free(camfile).

@houz
Copy link
Member

houz commented Sep 27, 2016

Hi, could you fix the issues addressed and rebase on current master? We are freezing for 2.2 soonish and I would really like to have this finally merged.

@houz houz merged commit a0ff580 into darktable-org:master Oct 4, 2016
@houz
Copy link
Member

houz commented Oct 4, 2016

I did some cleanup myself and merged it. Finally. After almost 2 years. I feel sorry for taking so long. Thank you again for your work.

@LebedevRI LebedevRI modified the milestone: 2.1 Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: enhancement current features to improve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants