Convert format of HEIC image to PNG by using Python.
Project description
HEIC2PNG
This is a tool for converting format of HEIC image to PNG by using Python.
And it can be used with python simple CLI.
I used the pypi package template to generate this repo, you can check it in the references.
Installation
pip install heic2png
Usage
Common use with code below.
from heic2png import HEIC2PNG
if __name__ == '__main__':
heic_img = HEIC2PNG('test.heic')
heic_img.save() # it'll show as `test.png`
And, you can try simple CLI with this.
python -m heic2png --input_path test.heic --output_path test.png
Or, you want to keep original name, just use this.
python -m heic2png --input_path test.heic
It'll generate test.png
for you.
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
HEIC2PNG-0.9.5.tar.gz
(4.1 kB
view hashes)