Closed Bug 1192154 Opened 9 years ago Closed 6 years ago

Ensure the names are unique across picture folders in DCF

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: hub, Unassigned)

References

Details

(Keywords: foxfood)

Integrate the date in picture file names

Do so respecting DCF and not like Android.

Olympus does that where their format is Pmddnnnn, where m is the month (hex digit), dd is the day of the month and nnnn is the 4 digit sequence as per the standard.

This should alleviate most of the concerns.
Keywords: foxfood
Just to give an example:

P8070001.jpg would be today.
P8080002.jpg would be tomorrow
P8080003.jpg 
P8080004.jpg 
PC240010.jpg would be on Christmas eve
P1010012.jpg would be on new Years.
Blocks: 1179570
A better suggestion for us:

PYYMnnnn.jpg: where YY is the year in decimal and M the month in hex. With the consecutive numbering with have over a century worth of unique names unless you take more than 1000 pictures a month.

We could also do
YYMxnnnn.jpg with x being incremented as we cycle through nnnn.
Of course as we cycle through nnnn we also create new directories as per the DCF standard.
Summary: Integrate the date in picture file names → Ensure the names are unique across picture folders in DCF
The goal is to deal with the use case of "I copy all the pictures into on directory". The proposed scheme is reasonably bullet proof.
And we need to fix bug 1192171 as well.
Depends on: 1192171
No longer depends on: 1192171
Depends on: 1227568
No longer blocks: 1179570
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.