Add version

This commit is contained in:
Aurélie Delhaie
2023-10-08 17:27:59 +02:00
parent ab31e2e3ff
commit e236d59c71
3 changed files with 57 additions and 4 deletions

View File

@@ -1 +1,33 @@
# HEIC2JPG
# HEIC2JPG
## Usage
To convert a single file:
`heic2jpg myfile.heic`
To convert all files in a folder:
`heic2jpg -dir ./MyPhotos -r`
You can create new files in another folder with the `-o` argument
Other arguments are available on `-h`
## Build
The tool contains C code, so you need to activate cgo to compile it.
`go build`
I compile with the following command (not sure if it speeds up conversion, but it makes the binary lighter):
On Linux:
```bash
GOAMD64='v3' go build -a -v -ldflags="-s -w" -buildvcs=false
```
On Windows (PowerShell):
```ps
$env:GOAMD64 = 'v3'; go build -a -v -ldflags="-s -w" -buildvcs=false
```