--bmp-pixel-format
- CLI
- --bmp-pixel-format
- REST
- bmp_pixel_format
Sets the pixel layout of BMP output.
| Value | Bits | Layout |
|---|---|---|
bgr24 | 24 | 8 blue / 8 green / 8 red |
rgb565le | 16 | 5 red / 6 green / 5 blue, little-endian |
gray8 | 8 | Grayscale |
Example
zshot -f page.bmp \
--bmp-pixel-format gray8 \
https://zshot-cli.com/example_assets/hello_zshot/{
"url": "https://zshot-cli.com/example_assets/hello_zshot/",
"output_type": "bmp",
"bmp_pixel_format": "gray8"
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/hello_zshot/","output_type":"bmp","bmp_pixel_format":"gray8"}' \
-o page.bmp