dont't write equirectangular for flat images

This commit is contained in:
Stefal 2023-09-12 22:23:28 +02:00
parent 50872cb178
commit 80d96d7ec7
1 changed files with 1 additions and 1 deletions

View File

@ -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