Skip to content

Commit

Permalink
Merge pull request #1351 from girder/more-pil-formats
Browse files Browse the repository at this point in the history
Handle more formats with PIL
  • Loading branch information
manthey authored Oct 29, 2023
2 parents 636129a + 291d0ed commit df16ea8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Guard against throwing a javascript warning ([#1337](../../pull/1337))
- Test on Python 3.12 ([#1335](../../pull/1335))
- Added filtering and limit options to the DICOMweb assetstore ([#1327](../../pull/1327))
- Support more formats through PIL ([#1351](../../pull/1351))

### Changes
- Prohibit bioformats and vips from reading mrxs directly ([#1328](../../pull/1328))
Expand Down
8 changes: 8 additions & 0 deletions sources/pil/large_image_source_pil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
register_avif_opener()
except Exception:
pass
try:
import pillow_jxl # noqa
except Exception:
pass
try:
import pillow_jpls # noqa
except Exception:
pass

try:
from importlib.metadata import PackageNotFoundError
Expand Down
4 changes: 3 additions & 1 deletion sources/pil/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ def prerelease_local_scheme(version):
],
extras_require={
'all': [
'rawpy ; python_version < "3.7" and python_version < "3.12"',
'rawpy ; python_version >= "3.7" and python_version < "3.12"',
'pillow-heif',
'pillow-jxl-plugin ; python_version >= "3.8"',
'pillow-jpls ; python_version < "3.12"',
],
'girder': f'girder-large-image{limit_version}',
},
Expand Down

0 comments on commit df16ea8

Please sign in to comment.