Mercurial > hg > orthanc-book
changeset 910:888df946c1be
preview quality
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 25 Jan 2023 14:15:03 +0100 |
parents | 7ccecfb76428 |
children | f9da5a7bd45f |
files | Sphinx/source/users/rest.rst |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Sphinx/source/users/rest.rst Mon Jan 09 11:07:38 2023 +0100 +++ b/Sphinx/source/users/rest.rst Wed Jan 25 14:15:03 2023 +0100 @@ -408,9 +408,11 @@ dynamic range of the pixel data is stretched to the [0..255] range. An equivalent JPEG image can be downloaded by setting the `HTTP header <https://en.wikipedia.org/wiki/List_of_HTTP_header_fields>`__ -``Accept`` to ``image/jpeg``:: +``Accept`` to ``image/jpeg``. By default, the jpeg quality is set to +90% but this can be specified in the url:: $ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview > Preview.jpg + $ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview?quality=80 > Preview80.jpg If you don't want to stretch the dynamic range, and create a 8bpp or 16bpp PNG image, you can use the following URIs::