diff --git a/sources/openslide/large_image_source_openslide/__init__.py b/sources/openslide/large_image_source_openslide/__init__.py index e9a794d56..cf92f82e4 100644 --- a/sources/openslide/large_image_source_openslide/__init__.py +++ b/sources/openslide/large_image_source_openslide/__init__.py @@ -255,6 +255,9 @@ def getInternalMetadata(self, **kwargs): results = {'openslide': {}} for key in self._openslide.properties: results['openslide'][key] = self._openslide.properties[key] + if (key == 'openslide.comment' and + 'aperio' in self._openslide.properties[key].split('\n', 1)[0].lower()): + results['aperio version'] = self._openslide.properties[key].split('\n', 1)[0].strip() return results @methodcache()