Skip to content

Commit 42048da

Browse files
committed
Cropping: include project name and ID in TIFF metadata
1 parent cf3fe73 commit 42048da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ Miscellaneous:
299299
pixels could appear on the right side and the bottom. This is fixed now and
300300
the entire space of the exported image is used correctly.
301301

302+
- Cropping: tool: exported TIFF files now also include the project ID and title
303+
in their metadata entries.
304+
302305
- Review widget: fast reviewing using the W key sometimes raised an error
303306
regarding a missing intersection. This is fixed now (#2296)
304307

django/applications/catmaid/control/cropping.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def create_tiff_metadata(self, n_images):
155155
'zoomlevel': self.zoom_level,
156156
'rotation_cw': self.rotation_cw,
157157
'ref_stack_id': self.ref_stack.id,
158+
'project_id': self.project.id
159+
'project_name': self.project.title
158160
}
159161
artist_meta.update(bb)
160162
ifd[TiffImagePlugin.ARTIST] = json.dumps(artist_meta)

0 commit comments

Comments
 (0)