Project

General

Profile

Bug #9599

No automatic grouping for import of RW2/jpeg pairs from Panasonic GX1

Added by Richard Wonka almost 6 years ago. Updated over 5 years ago.

Status:
Incomplete
Priority:
Low
Assignee:
-
Category:
Lighttable
Target version:
-
Start date:
09/29/2013
Due date:
% Done:

20%

Affected Version:
git development version
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

When importing jpg/RW2 pairs from my Panasonic GX1, dt used to automatically group these pairs.

This does not happen any more in current git master.

Can we have automatic grouping back, please?

History

#1 Updated by Tobias Ellinghaus almost 6 years ago

  • Status changed from New to Incomplete
  • % Done changed from 0 to 20

Nothing changed wrt. automatic grouping. Could you please check if grouping is turned on in the top toolbar (the 'G' button)?

#2 Updated by Richard Wonka almost 6 years ago

Tobias Ellinghaus wrote:

Nothing changed wrt. automatic grouping. Could you please check if grouping is turned on in the top toolbar (the 'G' button)?

So that button also switches off automatic grouping? I didn't expect that.
As the two states of the button are near-indistinguishable, (I am hoping for a little more difference between selected and unselected state) I'll have to play with some trial and error.

Thanks for the pointer.

Would it not make sense to keep automatic grouping enabled independent of the state of that button and just make the button change the global collapse/uncollapse of any existing groups?

#3 Updated by Tobias Ellinghaus almost 6 years ago

No, it doesn't enable/disable automatic grouping. I just wanted to know if the images might be grouped but you didn't see it because you turned grouping off.

#4 Updated by Christian iuga almost 6 years ago

Have you verified if you raw & jpg file have the exact same filename ? (expected file extension name of course)

#5 Updated by Richard Wonka almost 6 years ago

Yes I have verified the names "_<digit>*.{RW2,JPG}" It used to work for me, too. Could it be something to do with switching to Adobe RGB?

no, there is no grouping going on, independent of the G button in the header. I have tested that now.

#6 Updated by Tobias Ellinghaus almost 6 years ago

Do I understand correctly that your file names only consist of an underscore, a number, a dot and then the extension? Could you please try if it works with something that has something before the '_'? Maybe just add 'IMG' for a quick test.

#7 Updated by Richard Wonka almost 6 years ago

Panasonic cameras save images in the format (_|P)\d{7}.(JPG|RW2)

The first letter encodes for colour space. An underscore '_' signifies that the image is in AdobeRGB, a 'P' denotes sRGB
The seven digits are counters I haven't looked into yet
Extension denotes images format, as expected.

As grouping has worked when I was shooting in sRGB, the underscore may be the culprit. Let me check...

#8 Updated by Richard Wonka almost 6 years ago

The image names are the same on camera, but dt assigns them the $(SEQUENCE) number, so in darktable, they are not the same anymore.

The problem also appears when shooting sRGB, so it seems that dt looks at the final file name instead of the one in camera.

Now, dt requires a $(SEQUENCE) number for tethered shooting (it told me so when I tried once), so it appears that if I want to shoot tethered, I can not get automatic grouping.

#9 Updated by Richard Wonka almost 6 years ago

confirmed.

removing $(SEQUENCE) from the import file pattern fixes this. Should I file a bug about the tethered vs. grouping conflict?

#10 Updated by Richard Wonka almost 6 years ago

Hmm... wanted to close this, but it's neither invalid nor fixed. We just found a workaround for now.

#11 Updated by Tobias Ellinghaus almost 6 years ago

I am not sure that I understand everything correctly. Where was the $(SEQUENCE) that caused trouble? Please give a step-by-step description of how I can trigger the bug. Then I might be able to fix it.

You don't have to close the bug report, just change the subject to match the newly found cause. That way we will have all the discussions and findings in one place.

#12 Updated by Richard Wonka almost 6 years ago

Okay, steps for reproduction. (this is mildly dodgy wording, eh? :-)

  1. open import dialogue
  2. change to 'settings' tab
  3. insert the string $(SEQUENCE) into the entry field labelled "filename structure", e.g. $(EXIF_YEAR)-$(EXIF_MONTH)-$(EXIF_DAY)_$(FILE_NAME)_$(SEQUENCE).$(FILE_EXTENSION)
  4. import

no automatic grouping happens.

#13 Updated by Richard Wonka almost 6 years ago

P.S.: I don't have the permissions to change the issue title.

I'd say it's something like

No automatic grouping when sequence number in filename.

regarding the conflict with tethering. I don't understand why the sequence number is necessary to have in the filename for that use. If that is so, it may be a good idea to define a different default file pattern for tethered shooting.

#14 Updated by Tobias Ellinghaus almost 6 years ago

Wait, you are giving files different file names and wonder why they are not grouped? How should the code know that they are belonging together?

About tethering, I am not sure if there is such a thing as a camera file name. I will have a look.

#15 Updated by Tobias Ellinghaus almost 6 years ago

Update on tethering file names: for my camera the files originally have names of the form capt0000.cr2, capt0001.cr2, …. While this looks usable, whenever I restart darktable the counter in that filename is reset to 0000, so it's not really unique. I guess these file names are created by gphoto and not the camera itself. So having the $(SEQUENCE) in there makes sense. Is there a pressing need to shoot raw+jpeg when tethering?

#16 Updated by Richard Wonka over 5 years ago

Tobias Ellinghaus wrote:

... Is there a pressing need to shoot raw+jpeg when tethering?

The problem is that the filename presets used in tethering and in import are the same, so I have to use $(SEQUENCE) in the filename when tethering, but when I import, using $(SEQUENCE) breaks auto-grouping.

#17 Updated by Richard Wonka over 5 years ago

Tobias Ellinghaus wrote:

Update on tethering file names: for my camera the files originally have names of the form capt0000.cr2, capt0001.cr2, …. While this looks usable, whenever I restart darktable the counter in that filename is reset to 0000, so it's not really unique.

Why don't you use an exact timestamp to make sure images are unique? going down to 1/100th of a second should™ keep things tidy.

Also available in: Atom PDF