Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
L
Logbook-json-exif-merge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
6
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian
Logbook-json-exif-merge
Commits
191105ed
Commit
191105ed
authored
2 years ago
by
Sebastian
Browse files
Options
Downloads
Patches
Plain Diff
Chagen Tags
#10
Change Tags so i can filter in Darktable after filmtype
parent
20603859
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/convert.py
+7
-6
7 additions, 6 deletions
scripts/convert.py
with
7 additions
and
6 deletions
scripts/convert.py
+
7
−
6
View file @
191105ed
...
@@ -116,9 +116,9 @@ def convert_logbook_to_json(shots):
...
@@ -116,9 +116,9 @@ def convert_logbook_to_json(shots):
longitude
=
lon_dec_to_lon_dms
(
shot
.
pop
(
"
longitude
"
))
longitude
=
lon_dec_to_lon_dms
(
shot
.
pop
(
"
longitude
"
))
make
=
shot
.
pop
(
"
camera_make
"
)
make
=
shot
.
pop
(
"
camera_make
"
)
model
=
shot
.
pop
(
"
camera_model
"
)
model
=
shot
.
pop
(
"
camera_model
"
)
notes
=
"
roll_notes:
"
+
str
(
shot
.
pop
(
"
roll_notes
"
))
film_name
=
shot
.
pop
(
"
film name
"
)
notes
=
str
(
shot
.
pop
(
"
notes
"
))
iso
=
box_iso_to_iso
(
shot
.
pop
(
"
box_iso
"
))
iso
=
box_iso_to_iso
(
shot
.
pop
(
"
box_iso
"
))
imagedescription
=
str
(
shot
.
pop
(
"
notes
"
))
isospeed
=
shot_iso_to_isospeed
(
shot
.
pop
(
"
shot_iso
"
))
isospeed
=
shot_iso_to_isospeed
(
shot
.
pop
(
"
shot_iso
"
))
focallengthin35mmformat
=
focal_length_to_FocalLengthIn35mmFormat
(
focal_length
,
shot
[
"
film_format
"
])
focallengthin35mmformat
=
focal_length_to_FocalLengthIn35mmFormat
(
focal_length
,
shot
[
"
film_format
"
])
imagenumber
=
shot
.
pop
(
"
shot_number
"
)
imagenumber
=
shot
.
pop
(
"
shot_number
"
)
...
@@ -126,8 +126,8 @@ def convert_logbook_to_json(shots):
...
@@ -126,8 +126,8 @@ def convert_logbook_to_json(shots):
lensmodel
=
shot
.
pop
(
"
lens_model
"
)
lensmodel
=
shot
.
pop
(
"
lens_model
"
)
reelname
=
shot
.
pop
(
"
roll_name
"
)
reelname
=
shot
.
pop
(
"
roll_name
"
)
imageuniqueid
=
str
(
reelname
)
+
"
_
"
+
str
(
imagenumber
)
imageuniqueid
=
str
(
reelname
)
+
"
_
"
+
str
(
imagenumber
)
usercomment
=
"
dev_notes:
"
+
str
(
shot
.
pop
(
"
dev_notes
"
))
+
"
;
load_date:
"
+
shot
.
pop
(
"
load_date
"
)
+
"
;
unload_date:
"
+
shot
.
pop
(
"
unload_date
"
)
usercomment
=
"
roll_notes:
"
+
str
(
shot
.
pop
(
"
roll_notes
"
))
+
"
\n
dev_notes:
"
+
str
(
shot
.
pop
(
"
dev_notes
"
))
+
"
\n
load_date:
"
+
shot
.
pop
(
"
load_date
"
)
+
"
\n
unload_date:
"
+
shot
.
pop
(
"
unload_date
"
)
spectralsensitivity
=
shot
.
pop
(
"
film
name
"
)
documentname
=
film
_
name
exif_shot
[
"
DateTimeOriginal
"
]
=
datetimeoriginal
exif_shot
[
"
DateTimeOriginal
"
]
=
datetimeoriginal
exif_shot
[
"
ExposureTime
"
]
=
exposure_time
exif_shot
[
"
ExposureTime
"
]
=
exposure_time
...
@@ -142,7 +142,7 @@ def convert_logbook_to_json(shots):
...
@@ -142,7 +142,7 @@ def convert_logbook_to_json(shots):
exif_shot
[
"
LensMake
"
]
=
lensmake
exif_shot
[
"
LensMake
"
]
=
lensmake
exif_shot
[
"
LensModel
"
]
=
lensmodel
exif_shot
[
"
LensModel
"
]
=
lensmodel
exif_shot
[
"
Notes
"
]
=
notes
exif_shot
[
"
Notes
"
]
=
notes
exif_shot
[
"
Image
Description
"
]
=
imagedescription
exif_shot
[
"
Description
"
]
=
film_name
exif_shot
[
"
ReelName
"
]
=
reelname
exif_shot
[
"
ReelName
"
]
=
reelname
exif_shot
[
"
ISO
"
]
=
iso
exif_shot
[
"
ISO
"
]
=
iso
exif_shot
[
"
ISOSpeed
"
]
=
isospeed
exif_shot
[
"
ISOSpeed
"
]
=
isospeed
...
@@ -154,7 +154,8 @@ def convert_logbook_to_json(shots):
...
@@ -154,7 +154,8 @@ def convert_logbook_to_json(shots):
exif_shot
[
"
SourceFile
"
]
=
"
./
"
+
str
(
file_dict
.
get
(
str
(
int
(
imagenumber
))))
exif_shot
[
"
SourceFile
"
]
=
"
./
"
+
str
(
file_dict
.
get
(
str
(
int
(
imagenumber
))))
exif_shot
[
"
Software
"
]
=
version
exif_shot
[
"
Software
"
]
=
version
exif_shot
[
"
UserComment
"
]
=
usercomment
exif_shot
[
"
UserComment
"
]
=
usercomment
exif_shot
[
"
SpectralSensitivity
"
]
=
spectralsensitivity
exif_shot
[
"
SpectralSensitivity
"
]
=
film_name
exif_shot
[
"
DocumentName
"
]
=
documentname
exif_shot
.
update
(
shot
)
exif_shot
.
update
(
shot
)
exif_shots
.
append
(
exif_shot
)
exif_shots
.
append
(
exif_shot
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment