Skip to main content

Convert format of HEIC image to PNG by using Python.

Project description

HEIC2PNG

TestRelease

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


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)

Uploaded Source

Built Distribution

HEIC2PNG-0.9.5-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page