Skip to content

Commit

Permalink
Merge pull request #654 from girder/bioformats-ignore-ndpi
Browse files Browse the repository at this point in the history
Have bioformats ignore ndpi files.
  • Loading branch information
manthey authored Sep 10, 2021
2 parents 6b6d7f9 + 3dadf3b commit 0e49546
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/source/config_options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Configuration parameters:

- ``max_small_image_size``: The PIL tilesource is used for small images if they are no more than this many pixels along their maximum dimension.

- ``source_bioformats_ignored_extensions``: The bioformats tilesource can read some files that are better read by other tilesources or ignored. Since reading these files is suboptimal, by default files with particular extensions are ignored by the bioformats tilesource. This defaults to ``.jpg,.jpeg,.jpe,.png,.tif,.tiff``.
- ``source_bioformats_ignored_extensions``: The bioformats tilesource can read some files that are better read by other tilesources or ignored. Since reading these files is suboptimal, by default files with particular extensions are ignored by the bioformats tilesource. This defaults to ``.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi``.


Configuration from Python
Expand Down Expand Up @@ -60,7 +60,7 @@ For the Girder plugin, these can also be set in the ``girder.cfg`` file in a ``l
max_small_image_size = 4096
# The bioformats tilesource won't read files that end in a comma-separated
# list of extensions
source_bioformats_ignored_extensions = '.jpg,.jpeg,.jpe,.png,.tif,.tiff'
source_bioformats_ignored_extensions = '.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi'

Logging from Python
-------------------
Expand Down
3 changes: 2 additions & 1 deletion sources/bioformats/large_image_source_bioformats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
_openImages = []


config.ConfigValues['source_bioformats_ignored_extensions'] = '.jpg,.jpeg,.jpe,.png,.tif,.tiff'
config.ConfigValues['source_bioformats_ignored_extensions'] = \
'.jpg,.jpeg,.jpe,.png,.tif,.tiff,.ndpi'


def _monitor_thread():
Expand Down

0 comments on commit 0e49546

Please sign in to comment.