Skip to content

Anant-mishra1729/heif-to-image-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HEIF to Image Converter

This is a command-line tool to convert HEIF images to other image formats such as JPEG, PNG, etc. It uses the pyheif and Pillow libraries to read and convert HEIF images. It also supports multiprocessing to speed up the conversion process.

Note This converter supports extraction of images from the heic file.

Installation

  • Clone the repository
git clone https://github.com/Anant-mishra1729/heif-to-image-converter.git
  • Install the dependencies
pip install -r requirements.txt

Usage

usage: htoi_mp.py [-h] -i IMAGE [-o OUTPUT] [-t TYPE] [-q QUALITY]

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGE, --image IMAGE
                        Image to convert
  -o OUTPUT, --output OUTPUT
                        Output directory
  -t TYPE, --type TYPE  Type of image (jpg, png etc.)
  -q QUALITY, --quality QUALITY
                        Quality of image (default = 100)

Example

python htoi_mp.py -i fuji.heic -o fuji -t jpg -q 100

Multiprocessing

By default, the script uses two processes to convert images. This can be modified by changing the number of processes in the script. However, keep in mind that using too many processes may slow down the conversion process due to I/O and memory constraints.

License

MIT

About

Python application to convert heic/heif to other image formats, supports multiprocessing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages