Skip to content

Instantly share code, notes, and snippets.

@Yadunund
Created July 23, 2022 03:55
Show Gist options
  • Save Yadunund/147553216ddf3ad9849c78e8d8aeb0ea to your computer and use it in GitHub Desktop.
Save Yadunund/147553216ddf3ad9849c78e8d8aeb0ea to your computer and use it in GitHub Desktop.
Batch convert heic images to png
git clone https://github.com/ImageMagick/ImageMagick.git
cd ImageMagick/
chmod +x configure
./configure --with-heic=yes
make -j10
for h in *.HEIC; do
$HOME/imagemagic/ImageMagick/utilities/magick "$h" -quality 50% "${h%.*}".png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment