{"id":13508371,"url":"https://github.com/pragdave/exexif","last_synced_at":"2025-10-21T19:00:08.552Z","repository":{"id":21049014,"uuid":"24347864","full_name":"pragdave/exexif","owner":"pragdave","description":"Pure elixir library to extract tiff and exif metadata from jpeg files","archived":false,"fork":false,"pushed_at":"2020-07-29T17:26:12.000Z","size":3733,"stargazers_count":43,"open_issues_count":3,"forks_count":22,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-07T09:06:51.389Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pragdave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-22T22:25:14.000Z","updated_at":"2024-12-10T10:05:08.000Z","dependencies_parsed_at":"2022-08-05T10:15:25.417Z","dependency_job_id":null,"html_url":"https://github.com/pragdave/exexif","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragdave%2Fexexif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragdave%2Fexexif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragdave%2Fexexif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pragdave%2Fexexif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pragdave","download_url":"https://codeload.github.com/pragdave/exexif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314011,"owners_count":20757450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T02:00:52.143Z","updated_at":"2025-10-21T19:00:03.471Z","avatar_url":"https://github.com/pragdave.png","language":"Elixir","funding_links":[],"categories":["Images"],"sub_categories":[],"readme":"# Exexif\n\n_Read TIFF and EXIF information from a JPEG-format image._\n\n### Retrieve data from a file:\n\n```elixir\niex\u003e {:ok, info} = Exexif.exif_from_jpeg_file(path)\n```\n\nRetrieve data from a binary containing the JPEG (you don't need the whole\nthing—the exif is near the beginning of a JPEG, so 100k or so should\ndo fine).\n\n```elixir\niex\u003e {:ok, info} = Exexif.exif_from_jpeg_buffer(buffer)\n```\n\n### Access the high level TIFF data:\n\n```elixir\niex\u003e info.x_resolution\n72\niex\u003e info.model\n\"DSC-RX100M2\"\n```\n\n### The exif data is in there, too.\n\n```elixir\niex\u003e info.exif.color_space\n\"sRGB\"\n```\n\n```elixir\niex\u003e info.exif |\u003e Dict.keys\n[:brightness_value, :color_space, :component_configuration,\n :compressed_bits_per_pixel, :contrast, :custom_rendered, :datetime_original,\n :datetime_digitized, :digital_zoom_ratio, :exif_image_height,\n :exif_image_width, :exif_version, :exposure_bias_value, :exposure_mode,\n :exposure_program, :exposure_time, :f_number, :file_source, :flash,\n :flash_pix_persion, :focal_length, :focal_length_in_35mm_film,\n :iso_speed_ratings, :lens_info, :light_source, :max_aperture_value,\n :metering_mode, :recommended_exposure, :saturation, :scene_capture_type,\n :scene_type, :sensitivity_type, :sharpness, :white_balance]\n```\n\n### GPS data is in there, too (if presented in EXIF, of course.)\n\n```elixir\niex\u003e {:ok, info} = Exexif.exif_from_jpeg_file(\"test/images/sunrise.jpg\")\n{:ok,\n %{exif: %{color_space: \"Uncalibrated\", exif_version: \"2.10\", ...},\n   gps: %Exexif.Data.Gps{gps_altitude: 47, gps_altitude_ref: 0, ...},\n   make: \"ulefone\", model: \"Power\", modify_date: \"\\\"2016:12:28 14:04:48\\\"\",\n   orientation: \"Horizontal (normal)\", resolution_units: \"Pixels/in\",\n   x_resolution: 72, y_resolution: 72}}\n\niex\u003e info.gps.gps_latitude\n[41, 23, 16.019]\n\niex\u003e \"#{info.gps}\"\n\"41°23´16˝N,2°11´50˝E\"\n```\n\nTodo\n----\n\nThe exif tag list is missing some of the newer entries. Contributions welcome.\n\n\nLicense and Copyright\n---------------------\n\nSee LICENSE.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpragdave%2Fexexif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpragdave%2Fexexif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpragdave%2Fexexif/lists"}