Qtvr2img

From PanoTools.org Wiki

qtvr2img is a command-line tool for extracting content from QTVR panoramas.

Cubic Projection panoramas are extracted as six cube-faces in front, right, back, left, up, down order; Cylindrical Projection panoramas are extracted as a single rectangular image. Output is as PNM[*] portable anymap images with the same resolution as the JPEG tiles in the source file.

qtvr2img is shipped with the Freepv panorama viewer.