KTX
Renders the page as an ASTC-compressed GPU texture in a KTX 1.0 container with a single mip level and OpenGL format metadata in the header. Output is sRGB with straight alpha and top-down row order. Use --texture-block-size to trade sharpness for file size and --image-transparent-background to preserve transparent areas.
Example
Render an example SVG as a GPU texture saved to tiger.ktx, or see it rendered live in WebGL.
zshot -f tiger.ktx \
--browser-width 1024 --browser-height 1024 \
--image-transparent-background \
https://zshot-cli.com/example_assets/tiger/tiger.svg{
"url": "https://zshot-cli.com/example_assets/tiger/tiger.svg",
"output_type": "ktx",
"browser_width": 1024,
"browser_height": 1024,
"image_transparent_background": true
}curl -X POST http://127.0.0.1:3000/ \
-H "Content-Type: application/json" \
-d '{"url":"https://zshot-cli.com/example_assets/tiger/tiger.svg","output_type":"ktx","browser_width":1024,"browser_height":1024,"image_transparent_background":true}' \
-o tiger.ktx