{"id":14109748,"url":"https://github.com/hMatoba/Piexif","last_synced_at":"2025-08-01T09:31:36.777Z","repository":{"id":20699384,"uuid":"23983011","full_name":"hMatoba/Piexif","owner":"hMatoba","description":"Exif manipulation with pure python script.","archived":false,"fork":false,"pushed_at":"2023-11-22T15:55:08.000Z","size":2923,"stargazers_count":373,"open_issues_count":55,"forks_count":83,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-12-01T18:09:32.007Z","etag":null,"topics":["exif","jpeg","python","webp"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/hMatoba.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-09-13T01:54:07.000Z","updated_at":"2024-11-11T08:56:22.000Z","dependencies_parsed_at":"2024-01-08T08:03:53.961Z","dependency_job_id":null,"html_url":"https://github.com/hMatoba/Piexif","commit_stats":{"total_commits":305,"total_committers":12,"mean_commits":"25.416666666666668","dds":0.5147540983606558,"last_synced_commit":"3422fbe7a12c3ebcc90532d8e1f4e3be32ece80c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hMatoba%2FPiexif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hMatoba%2FPiexif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hMatoba%2FPiexif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hMatoba%2FPiexif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hMatoba","download_url":"https://codeload.github.com/hMatoba/Piexif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228360329,"owners_count":17907893,"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":["exif","jpeg","python","webp"],"created_at":"2024-08-14T10:02:28.586Z","updated_at":"2024-12-05T19:30:57.182Z","avatar_url":"https://github.com/hMatoba.png","language":"Python","readme":"Piexif\n======\n\n|Build Status| |Windows Build| |Coverage Status| |docs|\n\n\nTo simplify exif manipulations with Python. Writing, reading, and more... Piexif is pure Python. To everywhere with Python.\n\n\nDocument: http://piexif.readthedocs.org/en/latest/\n\nOnline demo: http://piexif-demo.appspot.com/demo\n\nInstall\n-------\n\n'easy_install'::\n\n    $ easy_install piexif\n\nor 'pip'::\n\n    $ pip install piexif\n\nor download .zip, extract it. Put 'piexif' directory into your environment.\n\nWhy Choose Piexif\n-----------------\n\n- Pure Python. So, it runs everywhere where Python runs.\n- Easy exif manipulations. Read, write, remove...\n- Documented. http://piexif.readthedocs.org/en/latest/\n\nHow to Use\n----------\n\nThere are only just five functions.\n\n- *load(filename)* - Get exif data as *dict*.\n- *dump(exif_dict)* - Get exif as *bytes*.\n- *insert(exif_bytes, filename)* - Insert exif into JPEG, or WebP.\n- *remove(filename)* - Remove exif from JPEG, or WebP.\n- *transplant(filename, filename)* - Transplant exif from JPEG to JPEG.\n\nExample\n-------\n\n::\n\n    exif_dict = piexif.load(\"foo1.jpg\")\n    for ifd in (\"0th\", \"Exif\", \"GPS\", \"1st\"):\n        for tag in exif_dict[ifd]:\n            print(piexif.TAGS[ifd][tag][\"name\"], exif_dict[ifd][tag])\n\nWith PIL(Pillow)\n----------------\n\n::\n\n    from PIL import Image\n    import piexif\n\n    im = Image.open(filename)\n    exif_dict = piexif.load(im.info[\"exif\"])\n    # process im and exif_dict...\n    w, h = im.size\n    exif_dict[\"0th\"][piexif.ImageIFD.XResolution] = (w, 1)\n    exif_dict[\"0th\"][piexif.ImageIFD.YResolution] = (h, 1)\n    exif_bytes = piexif.dump(exif_dict)\n    im.save(new_file, \"jpeg\", exif=exif_bytes)\n\nEnvironment\n-----------\n\nTested on Python 2.7, 3.5+ and PyPy3. Piexif would run even on IronPython. Piexif is OS independent and can run on Google App Engine.\n\nLicense\n-------\n\nThis software is released under the MIT license, see LICENSE.txt.\n\n.. |Build Status| image:: https://api.travis-ci.org/hMatoba/Piexif.svg?branch=master\n   :target: https://travis-ci.org/hMatoba/Piexif\n.. |Windows Build| image:: https://ci.appveyor.com/api/projects/status/github/hMatoba/Piexif?branch=master\u0026svg=true\n   :target: https://ci.appveyor.com/project/hMatoba/piexif\n.. |Coverage Status| image:: https://coveralls.io/repos/hMatoba/Piexif/badge.svg?branch=master\n   :target: https://coveralls.io/r/hMatoba/Piexif?branch=master\n.. |docs| image:: https://readthedocs.org/projects/piexif/badge/?version=latest\n   :target: https://readthedocs.org/projects/piexif/\n","funding_links":[],"categories":["Python","Utilities"],"sub_categories":["Metadata Removal"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FhMatoba%2FPiexif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FhMatoba%2FPiexif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FhMatoba%2FPiexif/lists"}