From 80d96d7ec7aa1ac91b42fe8cde65c3d279ec5496 Mon Sep 17 00:00:00 2001 From: Stefal Date: Tue, 12 Sep 2023 22:23:28 +0200 Subject: [PATCH] dont't write equirectangular for flat images --- writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writer.py b/writer.py index b21c9ca..ab476eb 100644 --- a/writer.py +++ b/writer.py @@ -135,7 +135,7 @@ def add_img_projection(picture: bytes, metadata: PictureMetadata) -> bytes: img = pyexiv2.ImageData(picture) updated_xmp = {} - if metadata.picture_type is not None: + if metadata.picture_type.value != "flat": updated_xmp["Xmp.GPano.ProjectionType"] = metadata.picture_type.value updated_xmp["Xmp.GPano.UsePanoramaViewer"] = True