Ever needed to convert a bunch of .heic
files from an iPhone into .jpg
files, either for size reasons or for portability? Here’s a one-liner that does it:
mkdir -p jpegs && mogrify -path jpegs -format jpg *.heic && rm *.heic
Feel free to adapt this one-liner to store the images somewhere else or convert them into a different format like .png
.
This approach should work on both macOS and Linux, assuming you have ImageMagick installed.