English | 简体中文
Project Name: GIF Converter
This is a tool that converts APNG files to GIF files and allows modification of the converted GIF files. It provides two main functionalities:
-
Convert APNG to GIF: By utilizing the apng2gif library, it can convert APNG files to GIF files and save them to the specified output directory.
-
Modify GIF Files: For the converted GIF files, the tool offers a function to modify the looping behavior. By default, GIF files have a limited number of loop repetitions, but with this tool, you can set the loop count to infinite.
To use the GIF Converter tool for APNG to GIF conversion and GIF modification, follow these steps:
- Install Dependencies: Run the following command in the project root directory to install the required dependencies:
npm install
-
Prepare Files: Place the APNG files you wish to convert in the specified input directory. By default, the input directory is
./origin
. -
Create Output Directory: If the output directory doesn't exist, it will be automatically created during runtime. Alternatively, you can manually create the output directory. The default output directory is
./output
. -
Run Conversion and Modification: Execute the following command in the project root directory to perform the conversion and modification:
npm start
-
View Results: In the console output, you will see the conversion and modification status for each file, along with the output file paths.
-
Completion: The converted and modified GIF files will be saved in the output directory. You can locate and use them there.
Note: Ensure that you have Node.js and npm installed before running the tool.
You can modify the following configuration options as per your requirements:
-
Input Directory: Default is
./origin
. You can modify thedirectoryPath
variable in thebatchModifyGifFilesInDirectory
function to specify the input directory path. -
Output Directory: Default is
./output
. You can modify theoutputDirectoryPath
variable in thebatchModifyGifFilesInDirectory
function to specify the output directory path.
I hope this project overview and usage instructions are helpful to you! If you have any questions or need further assistance, feel free to ask.