RapidIconGen is a tool designed for mass production scenarios that enables one-click generation of multi-size, multi-language icons. After configuration, the tool automates icon generation and creates a preview image for easy review of the final results.
- Supports batch generation of multi-size, multi-language icons.
- Selectively applies masks based on CSV data.
- Automatically generates a preview image after creating icons.
- Manages language, size, and text frame configurations through
\modules\config_loader.py
.
- Python 3.x
- Required Python libraries:
PIL
(Pillow)os
csv
-
Clone the repository
git clone https://github.com/xxeye/RapidIconGen.git
-
Install Pillow
Since this project uses
Pillow
for image processing, please install the Python library using the following command:pip install Pillow
-
Prepare the data
Place all image resources,
text_data.csv
, project numbers, and the mask configuration fileprefix_mask_data.csv
in the corresponding asset directories, ensuring the file structure matches the project requirements. -
Run the script
The script will prompt you to select a folder containing the assets and CSV files. Once processing is complete, it will generate the icons and a preview image.
python main.py
The project includes two resource folders, "RhythmMirage" and "RhythmMirage_B," for testing and viewing the necessary data structure.
==Notice== The test folder included in this project contains font files. These font files are provided for testing purposes only and are not created or owned by this project. Please do not use these font files for commercial purposes or any other non-testing purposes. For official use, please refer to the original licensing terms of the fonts.
- Two folders will be generated:
nas_data_list"_"ENU_text
anddataset_name_layers
. - Icons of various sizes will be saved in the
"nas_data_list"_"ENU_text"/ICON/PNG
directory within the selected folder. - The layers used during the drawing process will be retained in
dataset_name_layers
. - A preview image (
"dataset_name"_Preview.png
) will also be saved for quickly viewing the generated icons.
Here’s the preview of the generated icons:
This project is licensed under the MIT License. See the LICENSE file for details.