Mercurial > hg > orthanc-book
changeset 966:02121f3c7e65
note about the Accept header in WSI plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Jul 2023 16:24:56 +0200 |
parents | dfd33c9624d8 |
children | 2df3597eacc8 |
files | Sphinx/source/plugins/wsi.rst |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/plugins/wsi.rst Mon Jul 10 18:01:56 2023 +0200 +++ b/Sphinx/source/plugins/wsi.rst Wed Jul 12 16:24:56 2023 +0200 @@ -449,3 +449,9 @@ lossless (UID ``1.2.840.10008.1.2.4.90``), the plugin will transparently re-encode the tile to PNG in order to avoid any destructive compression. + +NB: Starting with version 2.0 of the WSI plugin, the +``/wsi/tiles/{id}/{z}/{x}/{y}`` route accepts the ``Accept`` HTTP +header, which can be used to force the compression of the tile. The +allowed values for ``Accept`` are: ``image/png``, ``image/jpeg``, and +``image/jp2`` (which corresponds to JPEG2k).