Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse EXIF metadata for heif_parser #208

Open
enricoribelli opened this issue May 12, 2022 · 0 comments
Open

Parse EXIF metadata for heif_parser #208

enricoribelli opened this issue May 12, 2022 · 0 comments

Comments

@enricoribelli
Copy link
Contributor

Metadata is already currently retrieved for heif and heic formats.
The set of information returned by the current logic, depending whether such information is contained in the analysed file, is the following (for example):

{
  "nature": "image",
  "format": "heic",
  "width_px": 1440,
  "height_px": 960,
  "display_width_px": 1440,
  "display_height_px": 960,
  "has_multiple_frames": null,
  "orientation": null,
  "has_transparency": null,
  "color_mode": null,
  "num_animation_or_video_frames": null,
  "image_orientation": null,
  "intrinsics": {
    "compatible_brands": [
      "heic",
      "mif1"
    ],
    "handler_type": "pict",
    "pixel_aspect_ratio": null,
    "colour_info": null,
    "pixel_info": [
      {
        "bits_in_channel_2": 8
      },
      {
        "bits_in_channel_3": 8
      },
      {
        "bits_in_channel_4": 8
      }
    ],
    "horizontal_offset": null,
    "vertical_offset": null,
    "clean_aperture": null,
    "rotation": 0
  },
  "content_type": "image/heic"
}

However so far we do not parse the whole EXIF data box, which may contain extra metadata worth showing in the result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant