{"id":21250907,"url":"https://github.com/natlee/heic2png","last_synced_at":"2025-07-11T01:31:40.728Z","repository":{"id":58390150,"uuid":"531562070","full_name":"NatLee/HEIC2PNG","owner":"NatLee","description":"Convert format of HEIC image to PNG by using Python.","archived":false,"fork":false,"pushed_at":"2023-11-21T03:46:24.000Z","size":33,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-03-25T07:20:53.891Z","etag":null,"topics":["cli","format","heic","heif","heif-converter","image-convert","image-converter","image-format","image-processing","ios-camera","png","tool"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/HEIC2PNG/","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/NatLee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-09-01T14:45:50.000Z","updated_at":"2024-03-21T16:57:52.000Z","dependencies_parsed_at":"2023-10-11T07:52:39.293Z","dependency_job_id":null,"html_url":"https://github.com/NatLee/HEIC2PNG","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"5cd7c3bd2f08e91a50431f0f803c81a023012301"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"tomchen/example_pypi_package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FHEIC2PNG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FHEIC2PNG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FHEIC2PNG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NatLee%2FHEIC2PNG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NatLee","download_url":"https://codeload.github.com/NatLee/HEIC2PNG/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225669684,"owners_count":17505363,"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":["cli","format","heic","heif","heif-converter","image-convert","image-converter","image-format","image-processing","ios-camera","png","tool"],"created_at":"2024-11-21T03:39:32.473Z","updated_at":"2024-11-21T03:39:33.268Z","avatar_url":"https://github.com/NatLee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HEIC2PNG\n\n[![Test](https://github.com/NatLee/HEIC2PNG/actions/workflows/test.yml/badge.svg)](https://github.com/NatLee/HEIC2PNG/actions/workflows/test.yml)\n[![Release](https://github.com/NatLee/HEIC2PNG/actions/workflows/release.yml/badge.svg)](https://github.com/NatLee/HEIC2PNG/actions/workflows/release.yml)\n\nThis is a tool for converting the format of HEIC images to PNG using Python. It now supports quality adjustment and has an option to overwrite existing files, enhancing the flexibility and usability of the tool.\n\n## Installation\n\n```bash\npip install heic2png\n```\n\nVisit [HEIC2PNG on PyPI](https://pypi.org/project/HEIC2PNG/) for more details.\n\n## Usage\n\n### As a Library\n\nYou can use HEIC2PNG in your Python code as shown below:\n\n```python\nfrom heic2png import HEIC2PNG\n\nif __name__ == '__main__':\n    heic_img = HEIC2PNG('test.heic', quality=90)  # Specify the quality of the converted image\n    heic_img.save()  # The converted image will be saved as `test.png`\n```\n\n### Command Line Interface\n\nHEIC2PNG also provides a CLI for easy conversion of HEIC images to PNG. Here are some examples:\n\nConvert a HEIC image to PNG with a specified output path:\n\n```bash\nheic2png -i test.heic -o test.png -q 90  # -q is used to specify the quality\n```\n\nIf you want to keep the original name, use the command below. It will generate `test.png` for you:\n\n```bash\nheic2png -i test.heic -q 90\n```\n\nTo overwrite an existing PNG file, use the `-w`` flag:\n\n```bash\nheic2png -i test.heic -o test.png -q 90 -w\n```\n## References\n\n- [Example PyPi Package](https://github.com/tomchen/example_pypi_package)\n- [Pillow HEIF](https://github.com/bigcat88/pillow_heif)\n- [pngquant](https://pngquant.org/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fheic2png","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatlee%2Fheic2png","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatlee%2Fheic2png/lists"}