Because Look Around provides six separate faces, you may want to stitch them into a single equirectangular image. The to_equirectangular function can perform this reprojection.
Note: The library does not automatically convert HEIC files to a standard image format. You must convert the HEIC faces (e.g., to PIL images) before passing them to to_equirectangular.
from streetlevel import lookaround
tile = lookaround.get_coverage_tile_by_latlon(54.583244, 9.820249)
pano = next(p for p in tile.panos if p.id == 6651337760361848285)
auth = lookaround.Authenticator()
faces = []
zoom = 2
for face_idx in range(0, 6):
face_heic = lookaround.get_panorama_face(pano, face_idx, zoom, auth)
# USER STEP: Convert the HEIC file to a PIL image here
# (e.g., using pillow-heif or similar)
faces.append(face_heic)
result = lookaround.to_equirectangular(faces, pano.camera_metadata)
result.save(f"{pano.id}_{zoom}.jpg", options={"quality": 100})