📜  heic open linux - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:15:30.230000             🧑  作者: Mango

HEIC Open Linux - Shell/Bash

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.

Features

HEIC Open Linux has the following features:

  • Converts HEIC images to JPEG or PNG format
  • Supports multiple conversion of images at once
  • Maintains the same quality image in smaller file size
  • Simple command-line interface that is easy to use
Installation

To install HEIC Open Linux, follow these steps:

  1. Clone the repository from GitHub:
    $ git clone https://github.com/everton137/heic-open-linux.git
    
  2. Navigate to the repository directory:
    $ cd heic-open-linux
    
  3. Make the script executable:
    $ chmod +x heic-converter.sh
    
  4. Install the dependencies:
    $ sudo apt-get install libheif-examples imagemagick
    
Usage

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.