Mercurial > hg > orthanc-book
comparison Sphinx/source/users/rest.rst @ 169:8239d44e0520
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 15 Oct 2018 09:13:53 +0200 |
parents | 86e92d0cc53e |
children | 901bc7b2dbab |
comparison
equal
deleted
inserted
replaced
168:86e92d0cc53e | 169:8239d44e0520 |
---|---|
345 dynamic range of the pixel data is stretched to the [0..255] range. | 345 dynamic range of the pixel data is stretched to the [0..255] range. |
346 An equivalent JPEG image can be downloaded by setting the `HTTP header | 346 An equivalent JPEG image can be downloaded by setting the `HTTP header |
347 <https://en.wikipedia.org/wiki/List_of_HTTP_header_fields>`__ | 347 <https://en.wikipedia.org/wiki/List_of_HTTP_header_fields>`__ |
348 ``Accept`` to ``image/jpeg``:: | 348 ``Accept`` to ``image/jpeg``:: |
349 | 349 |
350 $ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview > Preview.png | 350 $ curl -H 'Accept: image/jpeg' http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/preview > Preview.jpg |
351 | 351 |
352 If you don't want to stretch the dynamic range, and create a 8bpp or | 352 If you don't want to stretch the dynamic range, and create a 8bpp or |
353 16bpp PNG image, you can use the following URIs:: | 353 16bpp PNG image, you can use the following URIs:: |
354 | 354 |
355 $ curl http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/image-uint8 > full-8.png | 355 $ curl http://localhost:8042/instances/609665c0-c5198aa2-8632476b-a00e0de0-e9075d94/image-uint8 > full-8.png |