# HG changeset patch # User Sebastien Jodogne # Date 1689171896 -7200 # Node ID 02121f3c7e654b5ed8e17320a81d916252c3ced8 # Parent dfd33c9624d84005360de7fcb3f772d9269d214f note about the Accept header in WSI plugin diff -r dfd33c9624d8 -r 02121f3c7e65 Sphinx/source/plugins/wsi.rst --- 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).