comparison Sphinx/source/plugins/wsi.rst @ 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 4d431ad58521
children 2df3597eacc8
comparison
equal deleted inserted replaced
965:dfd33c9624d8 966:02121f3c7e65
447 might not be encoded using JPEG. Indeed, if the transfer syntax is 447 might not be encoded using JPEG. Indeed, if the transfer syntax is
448 uncompressed (UID ``1.2.840.10008.1.2`` and friends) or JPEG2k 448 uncompressed (UID ``1.2.840.10008.1.2`` and friends) or JPEG2k
449 lossless (UID ``1.2.840.10008.1.2.4.90``), the plugin will 449 lossless (UID ``1.2.840.10008.1.2.4.90``), the plugin will
450 transparently re-encode the tile to PNG in order to avoid any 450 transparently re-encode the tile to PNG in order to avoid any
451 destructive compression. 451 destructive compression.
452
453 NB: Starting with version 2.0 of the WSI plugin, the
454 ``/wsi/tiles/{id}/{z}/{x}/{y}`` route accepts the ``Accept`` HTTP
455 header, which can be used to force the compression of the tile. The
456 allowed values for ``Accept`` are: ``image/png``, ``image/jpeg``, and
457 ``image/jp2`` (which corresponds to JPEG2k).