mirror of
https://forge.chapril.org/tykayn/mapillary_download
synced 2025-06-20 01:34:43 +02:00
dont't write equirectangular for flat images
This commit is contained in:
parent
50872cb178
commit
80d96d7ec7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue