Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/biodranik/heif
Mac OS X: Convert any image to HEIF/HEIC format
https://github.com/biodranik/heif
command-line convert heic heif image image-processing jpeg jpg mac-osx png swift tiff
Last synced: 3 months ago
JSON representation
Mac OS X: Convert any image to HEIF/HEIC format
- Host: GitHub
- URL: https://github.com/biodranik/heif
- Owner: biodranik
- License: mit
- Created: 2018-11-06T07:15:36.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-08T21:26:39.000Z (about 1 year ago)
- Last Synced: 2024-10-25T05:49:42.390Z (3 months ago)
- Topics: command-line, convert, heic, heif, image, image-processing, jpeg, jpg, mac-osx, png, swift, tiff
- Language: Swift
- Size: 13.7 KB
- Stars: 72
- Watchers: 3
- Forks: 11
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HEIF
Mac OS X 10.13.4+: Convert any image to HEIF/HEIC formatUsage: ```HEIF [-q=quality] ```
where quality is in range from 0.1 (max compression) to 1.0 (lossless), default is 0.76Compiling on macOS (to create executable `HEIF` and copying to `bin` folder):
cd HEIF
swiftc -O -o HEIF main.swift
cp HEIF /usr/local/binOr simply run from terminal without compilation:
./main.swift [optional image2] [optional image3] [...]
Please note: odd image dimensions will be truncated by Apple's codec to even ones.
## Swift 5 runtime
Starting with Xcode 10.2, Swift 5 command line programs you build require the Swift 5 runtime support libraries built into macOS. These libraries are included in the OS starting with macOS Mojave 10.14.4. When running on earlier versions of macOS, [this package](https://support.apple.com/kb/DL1998?locale=en_US) must be installed to provide the necessary Swift 5 libraries.