Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mat2
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
atenart
mat2
Commits
c4271715
Commit
c4271715
authored
6 years ago
by
Julien (jvoisin) Voisin
Browse files
Options
Downloads
Patches
Plain Diff
Use full path to call exiftool
parent
09930391
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/images.py
+2
-2
2 additions, 2 deletions
src/images.py
with
2 additions
and
2 deletions
src/images.py
+
2
−
2
View file @
c4271715
...
...
@@ -21,7 +21,7 @@ class PNGParser(abstract.AbstractParser):
'
Megapixels
'
,
'
ImageHeight
'
}
def
get_meta
(
self
):
out
=
subprocess
.
check_output
([
'
exiftool
'
,
'
-json
'
,
self
.
filename
])
out
=
subprocess
.
check_output
([
'
/usr/bin/
exiftool
'
,
'
-json
'
,
self
.
filename
])
meta
=
json
.
loads
(
out
.
decode
(
'
utf-8
'
))[
0
]
for
key
in
self
.
meta_whitelist
:
meta
.
pop
(
key
,
None
)
...
...
@@ -38,7 +38,7 @@ class GdkPixbufAbstractParser(abstract.AbstractParser):
this has the side-effect of removing metadata completely.
"""
def
get_meta
(
self
):
out
=
subprocess
.
check_output
([
'
exiftool
'
,
'
-json
'
,
self
.
filename
])
out
=
subprocess
.
check_output
([
'
/usr/bin/
exiftool
'
,
'
-json
'
,
self
.
filename
])
meta
=
json
.
loads
(
out
.
decode
(
'
utf-8
'
))[
0
]
for
key
in
self
.
meta_whitelist
:
meta
.
pop
(
key
,
None
)
...
...
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