A small script that converts a given jpg file to ico file. Useful when you need an icon file with multiple sizes.
- Clone this repository
git clone https://github.com/alexiusacademia/jpg-to-ico.git
- Create a virtual environment.
- Activate the virtual environment
- Install the requirements
pip install -r requirements.txt
- Copy a path to an input file. For example
input.jpg
if you place it inside this code's folder - Decide where you want to put the out. If inside the same directory as this program, just set it to
output.ico
(You can change output to any name you want or need) - Edit the
main.py
if __name__ == '__main__':
jpg_to_ico('input.jpg', 'output.jpg')
- Save and run the script.
python main.py