Skip to content

Image to Icon Converter - This Python script converts image files to icon files with multiple sizes.

Notifications You must be signed in to change notification settings

cmatute7712/png-to-ico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to Icon Converter

This Python script converts image files to icon files with multiple sizes.

Requirements

  • Python 3
  • Pillow

Standard Installation

  1. Clone this repository.
git clone https://github.com/cmatute7712/png-to-ico.git
  1. CD to the new project folder
cd png-to-ico
  1. Install the required Python packages using pip:
pip install -r requirements.txt

Usage

  1. Place your image files in the input directory.
  2. Run the script:
python app.py

Docker

You can run this project with docker or docker-compose using the appropriate files in this repo.

  1. Clone the repository and CD into the project folder as we would do for a normal install..
  2. Place your image files to be converted into the input folder.
  3. 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.

Supported Image Formats

The script supports the following image formats:

  • PNG
  • JPEG
  • TIFF
  • BMP
  • GIF

Icon Sizes

The script generates icons with the following sizes:

  • 16x16
  • 32x32
  • 48x48
  • 64x64

About

Image to Icon Converter - This Python script converts image files to icon files with multiple sizes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published