Scripts to convert back and forth between panoramic pictures in different projection. Supported are equi-rectangular projection and cube maps, each given as a simple picture. The equi-rectangular pictures should ideally have 2:1 aspect ratio, the cube maps 4:3.
- Python3.7
- Pillow
In both scripts, the input image is the only required argument. Use --samples with care, its time-complexity grows with the square of the argument.
python equi2cube.py <input image> [--out <output image> --face-size <size> --samples <samples>]
python cube2equi.py <input image> [--out <output image> --height <height> --samples <samples>]