Equirectangular and cube face projections are commonly used in 360 photo / VR panorama processing. Here’s how to convert from one to the other.
Step 1. Install tooling
You’ll need Panotools and Hugin to perform the photo transformation. Follow this guide to get them installed and setup.
Step 2. Generate parameters
Open a command line and invoke the following:
This will generate a .pto file, containing all the parameters needed for the transformation from equirectangular to cube faces.
A real world example:
Step 3. Execute convert
Still in the command line, invoke the following:
Or, continuing my example:
This will produce 6 images, one for each cube face: