Jump to content

Leica M (240) Image Unique ID


biogon

Recommended Posts

Guest JonathanP
Sampling some of my images I think the number is time from camera switch on, incremented at a rate around 1500/sec. I haven't ascertained yet if the count continues whilst it sleeps, but switching off seems to reset it.

...

They haven't even bothered to store the number in non-volatile memory to carry on when next switched on, which given the size of the field would have pretty much guaranteed uniqueness.

 

I wasn't expecting Leica's dodgy code to produce a duplicate ImageUniqueId quite so quickly, but today I load some pictures into Lightroom and one of my images shows a preview of a picture that I took on holiday 2 months ago! Examining the raw file in RawDigger I find that both have a "unique" image ID of 25046. This really confuses Lightroom's cache.

 

Leica really need to sort out their software engineering - this sort of mistake (actually incompetence is a much better word) is not acceptable in a camera at this price level.

 

To create a unique number is a trivial task for this application - I have written algorithms to do this in embedded software more than once in my career. Its not difficult, trust me.

 

Oh well, I guess I'm going to have to write another Lightroom plugin this time to randomise the ImageUniqueId. Has anyone found a reliable way for us non-beta testers to report software bugs to Leica?

 

Jonathan

 

[Lightrooms cache may be being confused by the RawDataUniqueId which Leica have generated using an ASCII encoding of the lower part of the ImageUniqueId. Both need to be actually unique.]

Edited by jperkins
  • Like 3
Link to post
Share on other sites

I wasn't expecting Leica's dodgy code to produce a duplicate ImageUniqueId quite so quickly, but today I load some pictures into Lightroom and one of my images shows a preview of a picture that I took on holiday 2 months ago! Examining the raw file in RawDigger I find that both have a "unique" image ID of 25046. This really confuses Lightroom's cache.

 

Leica really need to sort out their software engineering - this sort of mistake (actually incompetence is a much better word) is not acceptable in a camera at this price level.

 

To create a unique number is a trivial task for this application - I have written algorithms to do this in embedded software more than once in my career. Its not difficult, trust me.

 

 

Been there myself. During one of my software contract jobs I was nicknamed, "date time man." You and I know how trivial it is to time-stamp anything, even (as I had to) work with a sixteen bit word and rapid sequences. (RT-11 DEC 11/70).

 

I fail to understand why Leica wants to obfuscate image IDs. It makes no sense at all.

Edited by pico
Link to post
Share on other sites

I fail to understand why Leica wants to obfuscate image IDs. It makes no sense at all.

 

That looks like some dead code no one completed because of some release deadline ;)

 

In any case, a sequential numbering won't work. A unique image ID should be unique "in the world" (i.e. almost 0 chance of duplication). There are a lot of ways to do that.

 

Leica software "engineering" is hopeless. They should open source the firmware as soon as a new camera is released. The release firmware is nothing else than a reasonable beta (let's admit it: flash memory gives companies the excuse to release products with beta software)... then it takes just a few passionate people to make it great - for free.

Link to post
Share on other sites

As Leica got unique image ID correct on the M8 and M9, you would have thought they could have just ported that bit of code over to the M240. It is also messing up image sorting in Bridge - very sloppy. When I get back from Colorado at the end of this week, I will report the repeating image ID problem to Leica.

 

Wilson

  • Like 2
Link to post
Share on other sites

You missed the case of the programmer promoted to boss.

 

Allright:

 

for ( ; ; ) {

New boss comes in;

New boss says "This code is crap ! Who's the idiot who did it ? Let's redo everything.";

if (boss == programmer) add(useless_nerdy_feature);

else remove(useful_feature);

}

Link to post
Share on other sites

Guest JonathanP
When I get back from Colorado at the end of this week, I will report the repeating image ID problem to Leica.

 

Thanks Wilson. They need to correct both the ImageUniqueId and the RawDataUniqueId, and remove the ASCII encoding of the latter which is halving the number of effective digits.

 

Jonathan

Edited by jperkins
Link to post
Share on other sites

Thanks Wilson. They need to correct both the ImageUniqueId and the RawDataUniqueId

 

FWIW, the firmware does not use those strings, but we know what you mean.

 

I'm retired and have no access to what Softune REALOS/FR requires. :(

Link to post
Share on other sites

Guest JonathanP
FWIW, the firmware does not use those strings

 

Oh quite likely :) but:

 

<pedantic-software-engineer>

ImageUniqueID is the field name from EXIF Specification v2.2

RawDataUniqueID is the field name from DNG Specification v1.4

</pedantic-software-engineer>

 

they can call them fred and jim in the code for all I care* :D

 

*actually I do care because stupid names = code maintenance nightmare - I'm sure you've had your fair share of inherited mess as well ;)

Link to post
Share on other sites

  • 3 weeks later...
As Leica got unique image ID correct on the M8 and M9, you would have thought they could have just ported that bit of code over to the M240. It is also messing up image sorting in Bridge - very sloppy. When I get back from Colorado at the end of this week, I will report the repeating image ID problem to Leica.

 

Wilson

 

 

Hi Wilson,

 

Have you reported this problem to Leica yet?

This is certainly a fascinating subject.

TIA.

Link to post
Share on other sites

K-H,

 

I got someone to talk to them about it a PK. There was apparently, not a flicker of interest in doing anything about sorting the seemingly random and repeating unique image ID situation. Leica I am afraid, is increasingly beginning to look like a typical company co-run by Blackstone, where all that matters is the short term bottom line and s*d everything else. I would not be at all surprised to hear they have borrowed hugely to pay out a “special dividend,” as that is the way these private equity sharks seem to go about their business.

 

Wilson

  • Like 1
Link to post
Share on other sites

Guest JonathanP
There was apparently, not a flicker of interest in doing anything about sorting the seemingly random and repeating unique image ID situation.

 

Thanks for trying anyway Wilson!

 

As a workaround, I have released a new version of my M240 green shadows plugin that now sets both the ImageUniqueID and RawDataUniqueID in the output file to a MD5 derived digest of the raw data - this will, to all intents, guarantee uniqueness. The free plugin can be downloaded from here. If anyone does get stuck with 2 files with the same ID like I did, at least it provides a quick and simple workaround.

 

Interestingly I found that Lightroom uses the RawDataUniqueID to index its preview cache, but Bridge uses the ImageUniqueID, so both fields need to be fixed (in case Leica is listening).

 

Hope it helps.

 

Jonathan

  • Like 3
Link to post
Share on other sites

Thanks for trying anyway Wilson!

 

As a workaround, I have released a new version of my M240 green shadows plugin that now sets both the ImageUniqueID and RawDataUniqueID in the output file to a MD5 derived digest of the raw data - this will, to all intents, guarantee uniqueness. The free plugin can be downloaded from here. If anyone does get stuck with 2 files with the same ID like I did, at least it provides a quick and simple workaround.

 

Interestingly I found that Lightroom uses the RawDataUniqueID to index its preview cache, but Bridge uses the ImageUniqueID, so both fields need to be fixed (in case Leica is listening).

 

Hope it helps.

 

Jonathan

 

Jonathan,

 

Many thanks for having a go a sorting this. Sadly I very rarely use LR, using C1 for my RAW converter. However I was using Bridge but until Leica sorts this problem, I can’t really use it. I can only think that Leica was trying to prevent people seeing how many shutter activations cameras had had before they received them and then querying it if the number was high (over say 200).

 

Wilson

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...