Stereopix viewer examples
Here, we will present some examples to use the viewer of Stereopix in your own website. It is a complement to the help page of the website. Remember that the files you want to load in the viewer should all be served in HTTPS with the CORS headers set to allow https://stereopix.net.
Have the curiosity to inspect the source code of these pages on this website or in the GitHub repository. This one additionnaly contains a mini HTTPS server giving CORS permissions written in python (with self-generated certificate that you would have to temporary allow) that could help you to test on your local machine.
Table of content
This example shows a simple case with only one image in parallel format.
This example shows a simple case with only one image in cross format.
This example shows a simple case with only one image in parallel format defined as phantogram.
Advanced JSON as file
This example shows a list of images passed from a JSON file.
Advanced JSON as script
This example shows a list of images passed by JSON via script.
This example shows how to change the style to display the viewer in a box of ratio 2:1.
This example shows how to build a simple gallery on top of the viewer.
Conversion from Suto's viewer
This example shows how to send a list of images originally created for the "HTML5 viewer" of M.Suto to the viewer of Stereopix.
This example shows a proof-of-concept (PoC) presenter assistant, allowing multiple people to look at the same image in sync with their prefered viewing method.