Equirectangular/Cube Panorama Sizes

The krpano tools are using this formula for their conversion withour any loss of pixel data:

CubeWidth = Math.round ( SphereWidth / PI )


  • CubeWidth = width of the resulting 6 cube faces in pixels
  • Math.round = rounds the value to the rearest whole number or integer
  • SphereWidth = width or longest side of the equirectangular image, also technically the circumference of the panoramic sphere, in pixels
  • PI = the number π, approximately equal to 3.14159

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.