Path parameters
-
index
integer(int32) Required The index of the image to get
Query parameters
-
resize
boolean Whether to resize the image.
-
quality
integer(int32) The quality of the image, ranging from 1 (worst) to 100 (best). -1 or omitted for png
-
size
string The size of the image ([width]x[height]). Requires resize to be true.
-
scale
number(double) The scale of the image. Requires resize to be true.
-
factor
number(double) The stretch factor to apply, between 0 and 1. Defaults to what is configured in the profile.
-
blackClipping
number(double) The black clipping to apply. Defaults to what is configured in the profile.
-
unlinked
boolean Indicates if the stretch should be unlinked. Defaults to what is configured in the profile.
-
stream
boolean Stream the image to the client. This will stream the image in image/jpg or image/png format.
-
debayer
boolean Indicates if the image should be debayered
-
bayerPattern
string What bayer pattern to use for debayering, if debayer is true. If this is not specified, the api will try to use the bayer pattern that is configured in the profile as its first option, if that is set to Auto, the api will try to use the bayer pattern reported by the camera if it is connected. The fallback value is Monochrome.
Values are
Monochrome
,Color
,RGGB
,CMYG
,CMYG2
,LRGB
,BGGR
,GBRG
,GRBG
,GRGB
,GBGR
,RGBG
, orBGRG
. -
autoPrepare
boolean Setting this to true will leave all processing up to NINA and you will recieve exactly the same image as you see in NINA. All other parameters related to image processing will have no effect.
-
imageType
string Filter the image history by image type. This is useful if you got the index of an image using the history with a filter and now want to get the image. E.g. the 3rd flat in the image history is the 3rd flat in the image endpoint.
Values are
LIGHT
,FLAT
,DARK
,BIAS
, orSNAPSHOT
. -
raw_fits
boolean Whether to send the image (without streaming) as a raw FITS format. Will return an error if the image is not of type FITS.
curl \
--request GET 'http://localhost:1888/v2/api/image/{index}'
{
"Response": "<base64 encoded image>",
"Error": "string",
"StatusCode": 200,
"Success": true,
"Type": "API"
}
{
"Response": "string",
"Error": "Index out of range",
"StatusCode": 400,
"Success": false,
"Type": "API"
}
{
"Response": "string",
"Error": "Unknown error",
"StatusCode": 500,
"Success": false,
"Type": "API"
}