Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
plotID_python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
plotID
plotID_python
Commits
0af71ead
Commit
0af71ead
authored
2 years ago
by
Mayr, Hannes
Browse files
Options
Downloads
Patches
Plain Diff
Add comment about exif metadata key 270.
parent
108d0394
No related branches found
No related tags found
1 merge request
!49
Draft: Add ID to metadata of the png file
Pipeline
#853729
failed
2 years ago
Stage: linting
Stage: testing
Stage: security
Stage: docs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plotid/save_plot.py
+1
-0
1 addition, 0 deletions
plotid/save_plot.py
with
1 addition
and
0 deletions
plotid/save_plot.py
+
1
−
0
View file @
0af71ead
...
...
@@ -73,6 +73,7 @@ def save_plot(figures, plot_names, figure_ids=[], extension="png"):
elif
all
(
x
in
str
(
type
(
fig
))
for
x
in
[
"
PIL
"
,
"
ImageFile
"
]):
plot_path
.
append
(
plot_names
[
i
]
+
"
.tmp.
"
+
extension
)
img_exif
=
fig
.
getexif
()
# 270 or 0x010e is the EXIF identifier for "ImageDescription"
img_exif
[
270
]
=
figure_ids
[
i
]
fig
.
save
(
plot_path
[
i
],
exif
=
img_exif
)
else
:
...
...
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