Skip to content

Commit

Permalink
Add an extension and mimetype to the listed openjpeg handlers
Browse files Browse the repository at this point in the history
This matches the extensions we added to the docs
  • Loading branch information
manthey committed Sep 18, 2024
1 parent bf48775 commit 592bcd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
- Support dict with MultiFileTileSource ([#1641](../../pull/1641))
- The PIL source reads more multi-frame images ([#1643](../../pull/1643))

### Changes

- Add an extension and mimetype to the listed openjpeg handlers ([#1644](../../pull/1644))

### Bug Fixes

- Fix an issue when asking not to resample a GDAL tile iterator ([#1640](../../pull/1640))
Expand Down
2 changes: 2 additions & 0 deletions sources/openjpeg/large_image_source_openjpeg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ class OpenjpegFileTileSource(FileTileSource, metaclass=LruCacheMetaclass):
None: SourcePriority.MEDIUM,
'jp2': SourcePriority.PREFERRED,
'jpf': SourcePriority.PREFERRED,
'j2c': SourcePriority.PREFERRED,
'j2k': SourcePriority.PREFERRED,
'jpx': SourcePriority.PREFERRED,
}
mimeTypes = {
None: SourcePriority.FALLBACK,
'image/j2c': SourcePriority.PREFERRED,
'image/jp2': SourcePriority.PREFERRED,
'image/jpx': SourcePriority.PREFERRED,
}
Expand Down

0 comments on commit 592bcd6

Please sign in to comment.