Stereo file
curl -X POST "http://localhost:8080/convert" \
-F "[email protected]" \
-o spatial.heic
Left/right files
curl -X POST "http://localhost:8080/convert" \
-F "[email protected]" \
-F "[email protected]" \
-o spatial.heic
Stereo URL
curl "http://localhost:8080/convert?url=https://example.com/stereo.jpg" \
-o spatial.heic
Left/right URLs
curl "http://localhost:8080/convert?leftUrl=https://example.com/left.jpg&rightUrl=https://example.com/right.jpg" \
-o spatial.heic
Optional parameters
- type (lr, rl, ba, ab, anaglyph, rgbd, autostereogram)
- baseline (>= 0)
- fov (> 0, < 180)
- disparity (>= -1, <= 1)
- half (1 to upscale half-resolution SBS/OU - default 0)
- colors (anaglyph: red-cyan, red-green, red-blue, green-magenta, amber-blue - default red-cyan)
- greyscale (0 to keep anaglyph eyes' filtered channels in color - default 1)
- depth (rgbd polarity: auto, near-white, far-white - default auto)
- vergence (autostereogram viewing method: divergent, cross - default divergent)
- period (autostereogram pattern period in px: auto, >= 0 - default auto)
- strip (1 to remove non-spatial metadata - default 0)