Convert HEIC images to JPEG format on the Mac

Related tags

Image heic2jpeg
Overview

heic2jpeg

Convert HEIC images to JPEG format on the Mac

A basic tool to convert Apple's obnoxious HEIC format images (as the default photo format for the iPhone or iPad camera) into proper cross-platform JPEGs. Since it uses Apple's CoreImage framework, you do not need to worry about infringing the many patents on this particularly encumbered format, as you are riding on Apple's license. The flip side is this will not run on Linux or other platforms.

Usage

Running:

heic2jpeg foo.HEIC bar.HEIC ...

will convert foo.HEIC to foo.jpg, bar.HEIC to bar.jpg and so on. If the destination files already exist, they will not be overwritten. There are no options, the JPEG files will be created using 90% quality, which is more than good enough for smartphones with their low-quality sensors. Since it is using CoreImage, all the image metadata will be carried over, including iPhone geoloc data, so if you want to scrub that, you will need to use another tool like jhead -purejpg or my own jpegstrip.

To convert an entire directory with HEIC images, while using all the cores on my system, I use the command:

find $HOME/Pictures -name \*.HEIC -print0 | xargs -0 -P 12 -t -n 10 heic2jpeg

Where it will run 12 processes in parallel, consuming 10 files each. I find the optimal setting to be 150% to 200% of the actual cores on your system (not including Intel's fake Hyperthreading cores, which don't count).

Building

You need to have Swift installed on your machine, e.g. by installing Xcode.

Then simply check out this repo, and inside it run make

Note

This project has nothing to do with github.com/crb912/heic2jpeg other than sharing a name. That project is cross-platform, this tool only works on the Mac. Unfortunately, that project is also subject to patent issues. Just another reason to shun the HEIF/HEIC format.

You might also like...
A tool support convert image gif to gif3d
A tool support convert image gif to gif3d

Trick convert gif to gif3d using Swift Features Simple way to convert gif to gif3d Change background Change size eraser tool How to work Add a layer w

A Swift package to convert a colour to a name using Wikipedia's colour list

ColorName Usage import ColorName SwiftUI let myColorName = getName(for: Color.red) print(myColorName) UIKit let myColorName = getName(for: UIColor.red

Agrume - 🍋 An iOS image viewer written in Swift with support for multiple images.
Agrume - 🍋 An iOS image viewer written in Swift with support for multiple images.

Agrume An iOS image viewer written in Swift with support for multiple images. Requirements Swift 5.0 iOS 9.0+ Xcode 10.2+ Installation Use Swift Packa

APNGKit is a high performance framework for loading and displaying APNG images in iOS and macOS.
APNGKit is a high performance framework for loading and displaying APNG images in iOS and macOS.

APNGKit is a high performance framework for loading and displaying APNG images in iOS and macOS. It's built on top of a modified version of libpng wit

A lightweight generic cache for iOS written in Swift with extra love for images.
A lightweight generic cache for iOS written in Swift with extra love for images.

Haneke is a lightweight generic cache for iOS and tvOS written in Swift 4. It's designed to be super-simple to use. Here's how you would initalize a J

Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web
Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web

Kingfisher is a powerful, pure-Swift library for downloading and caching images from the web. It provides you a chance to use a pure-Swift way to work

Image viewer (or Lightbox) with support for local and remote videos and images
Image viewer (or Lightbox) with support for local and remote videos and images

Table of Contents Features Focus Browse Rotation Zoom tvOS Setup Installation License Author Features Focus Select an image to enter into lightbox mod

SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them type-safe to use.
SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them type-safe to use.

SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images, localised strings, etc), to make them type-safe to use.

A high-performance image library for downloading, caching, and processing images in Swift.
A high-performance image library for downloading, caching, and processing images in Swift.

Features Asynchronous image downloader with priority queuing Advanced memory and database caching using YapDatabase (SQLite) Guarantee of only one ima

Owner
Fazal Majid
Fazal Majid
iOS SDK to share JPEG images with an expiration date

Ebblink iOS SDK A library to integrate Ebblink private image sharing capabilities into your iOS app. Table of Contents Getting Started Requirements Se

null 4 Apr 6, 2018
ImageView - Component for loading and displaying different images aka SVG/PNG/JPG/JPEG

ImageView Component that loads and displays images(.svg/.png/.jpg/.jpeg) form as

Sergei 1 Mar 23, 2022
A Swift implementation of fastimage. Supports PNG, GIF, and JPEG.

ImageScout ImageScout is a Swift implementation of fastimage. It allows you to find the size and type of a remote image by downloading as little as po

Reda Lemeden 967 Dec 30, 2022
Style Art library process images using COREML with a set of pre trained machine learning models and convert them to Art style.

StyleArt Style Art is a library that process images using COREML with a set of pre trained machine learning models and convert them to Art style. Prev

iLeaf Solutions Pvt. Ltd. 222 Dec 17, 2022
XIV-on-Mac - Wine Wrapper, Setup tool and launcher for FFXIV on mac

XIV on Mac Wine Wrapper, Setup tool and alternative launcher for FFXIV on MacOS.

null 210 Dec 26, 2022
The Quite OK Image format, but for Apple

QOI A thin Swift wrapper of qoi the Quite OK Image format. Still very much a work in progress, contributions are welcome. Supported functionality: Ren

Christopher Baltzer 1 Dec 1, 2021
Ioreg2plist - Dumps macOS IORegistry entries in plist format

ioreg2plist A command line tool to dump the macOS IORegistry entries in plist fo

null 2 Feb 15, 2022
Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

Swiftly convert country codes and cultural terms to all 269 emoji flags without hassle

Arnold Rozon 2 May 9, 2022
Convert the image to hexadecimal to send the image to e-paper

ConvertImageToHex Convert the image to hexadecimal to send the image to e-paper Conversion Order // 0. hex로 변환할 이미지 var image = UIImage(named: "sample

Hankyeol Park 0 Feb 26, 2022
Convert UIImage to ASCII art

BKAsciiImage As seen on Cmd.fm iOS App https://itunes.apple.com/app/cmd.fm-radio-for-geeks-hackers/id935765356 Installation BKAsciiImage is available

Barış Koç 427 Dec 17, 2022