Metadata-Version: 2.1
Name: heic-to-jpeg-converter
Version: 1.0.2
Summary: HEIC to JPEG Converter
Home-page: https://github.com/ushruffi/heic-to-jpeg-converter
Author: Talal Ashraf
Author-email: ushruffi@gmail.com
License: MIT License
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.9
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: cffi (==1.14.5)
Requires-Dist: click (==7.1.2)
Requires-Dist: Pillow (==8.1.2)
Requires-Dist: pycparser (==2.20)
Requires-Dist: pyheif (==0.5.1)

# HEIC TO JPG

Converts all pictures in a given folder from HEIC to JPG. Stores the new photos with the same name in `/converted` folder in the same directory unless target folder provided in flags.


Thanks to [this link](https://stackoverflow.com/a/65462590).

## Installing prerequisites

1. Install libheif via Homebrew

Homebrew
```bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
```

Libheif
```bash
brew install libheif
```

```bash
pip install heic-to-jpeg-converter
```


## Usage

Convert everything in current folder and store in `/converted`
```bash
jpeg-converter convert
```
Find all files in the Downlaods folder and save them in current directory
```bash
jpeg-converter convert -s ~/Downloads -t .
```


## Testing Locally

1. Create a virtualenv

```bash
python3 -m venv env
```

2. Activate the virtual environment

```bash
source env/bin/activate
```

3. Use script
```bash
development.sh
```


