This Python script converts image files to icon files with multiple sizes.
- Python 3
- Pillow
- Clone this repository.
git clone https://github.com/cmatute7712/png-to-ico.git
- CD to the new project folder
cd png-to-ico
- Install the required Python packages using pip:
pip install -r requirements.txt
- Place your image files in the input directory.
- Run the script:
python app.py
You can run this project with docker or docker-compose using the appropriate files in this repo.
- Clone the repository and CD into the project folder as we would do for a normal install..
- Place your image files to be converted into the input folder.
- Either run the dockerfile or the docker-compose
docker build -t png-to-ico . && docker run png-to-ico
docker-compose up -d
The script will convert all image files in the input directory to icons and save them in the output directory. The output icons will have the same base name as the input images, but with a .ico extension.
The script supports the following image formats:
- PNG
- JPEG
- TIFF
- BMP
- GIF
The script generates icons with the following sizes:
- 16x16
- 32x32
- 48x48
- 64x64