changeset 911:f9da5a7bd45f

merge
author Alain Mazy <am@osimis.io>
date Wed, 25 Jan 2023 14:15:26 +0100
parents 888df946c1be (diff) 5622e4ac108b (current diff)
children dbe3fd98beb0
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Sphinx/source/users/rest.rst	Fri Jan 20 08:14:04 2023 +0100
+++ b/Sphinx/source/users/rest.rst	Wed Jan 25 14:15:26 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::