# HG changeset patch # User Alain Mazy # Date 1674652503 -3600 # Node ID 888df946c1beb569e4ca173fc6136a7fe3022549 # Parent 7ccecfb76428aa888981a035bba9974653946f38 preview quality diff -r 7ccecfb76428 -r 888df946c1be Sphinx/source/users/rest.rst --- 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 `__ -``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::