hMatoba / Piexif

Exif manipulation with pure python script.
MIT License
367 stars 81 forks source link

360* photo detection support #107

Open ihor-nahuliak opened 3 years ago

ihor-nahuliak commented 3 years ago

Please, add photo projection support to detect spherical & cylindrical photos.

https://exiftool.org/TagNames/XMP.html#GPano https://exiftool.org/TagNames/Matroska.html https://github.com/google/spatial-media/blob/master/docs/spherical-video-v2-rfc.md

e.g.

TAGS['Matroska'] = {
    0x7671: {'name': 'ProjectionType', 'type': TYPES.Long},
    0x7673: {'name': 'ProjectionPosYaw', 'type': TYPES.Float},
    0x7674: {'name': 'ProjectionPosPitch', 'type': TYPES.Float},
    0x7675: {'name': 'ProjectionPosRoll', 'type': TYPES.Float},
}

class Matroska:
    # https://exiftool.org/TagNames/Matroska.html
    ProjectionType = 0x7671
    ProjectionPosYaw = 0x7673
    ProjectionPosPitch = 0x7674
    ProjectionPosRoll = 0x7675

not sure how to add XMP GPano Tags

Thanks!