📅  最后修改于: 2023-12-03 15:15:30.230000             🧑  作者: Mango
HEIC (High Efficiency Image Format) is a new image format developed by MPEG. Compared to traditional image formats like JPEG and PNG, HEIC has much higher compression and can therefore preserve the same quality image in a smaller file size. However, HEIC is not natively supported in many devices and operating systems, including Linux.
HEIC Open Linux is a Bash script that converts HEIC images into JPEG or PNG format on Linux machines. It simplifies the process of converting HEIC images for Linux users, by automating the conversion process through a simple command-line interface.
HEIC Open Linux has the following features:
To install HEIC Open Linux, follow these steps:
$ git clone https://github.com/everton137/heic-open-linux.git
$ cd heic-open-linux
$ chmod +x heic-converter.sh
$ sudo apt-get install libheif-examples imagemagick
HEIC Open Linux can be used to convert one or multiple HEIC images to JPEG or PNG format.
The basic command to convert a single HEIC image to JPEG is:
$ ./heic-converter.sh input.heic output.jpg
To convert a single HEIC image to PNG, use:
$ ./heic-converter.sh input.heic output.png
To convert multiple HEIC images to JPEG, use:
$ ./heic-converter.sh input1.heic input2.heic input3.heic output1.jpg output2.jpg output3.jpg
To convert multiple HEIC images to PNG, use:
$ ./heic-converter.sh input1.heic input2.heic input3.heic output1.png output2.png output3.png
HEIC Open Linux can also convert all HEIC images in a directory to JPEG or PNG format. To convert all HEIC images in a directory to JPEG, use:
$ ./heic-converter.sh /path/to/dir/ *.heic *.jpg
To convert all HEIC images in a directory to PNG, use:
$ ./heic-converter.sh /path/to/dir/ *.heic *.png
HEIC Open Linux also provides a help message to guide users on how to use the script. To show the help message, use:
$ ./heic-converter.sh --help
HEIC Open Linux is a simple and efficient tool that can help Linux users convert HEIC images to JPEG or PNG format. It simplifies the conversion process through a simple command-line interface, making it easy to use for both novice and expert Linux users.