Skip to content

A Python script with a PyQt interface that converts PNG files to ICO files

Notifications You must be signed in to change notification settings

nemmusu/PNGtoICO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PNG to ICO Converter

Readme

  1. Readme: Italiano
  2. Readme: English

Description

This program is a converter from PNG to ICO. It allows you to select a PNG file and convert it to an ICO file. ICO is a file format used for icons in Windows operating systems.

Dependencies

  • PyQt5
  • pillow

Usage

  1. Install the necessary dependencies:
pip install PyQt5
pip install pillow
  1. Run the program:
python converter.pyw
  1. In the main window of the program, click on the "Convert from PNG to ICO" button.

  2. A file dialog window will appear to select a PNG file to convert. Select the desired file and click "Open".

  3. A check will be performed to verify if the selected file is indeed a PNG file. If it's not, an error message will be displayed.

  4. Next, a file dialog window will appear to select the save location for the converted ICO file. Select the desired location and click "Save".

  5. The PNG file will be converted to an ICO file and a confirmation message will be displayed with the save location of the ICO file.

Compiling the program

  1. Install the necessary dependencies:
pip install pyinstaller
  1. Once PyInstaller is installed, you can use it to create an executable from your Python script. The file version_info.txt contains information about the executable to be created. Here is an example command to create an executable on Windows:
pyinstaller --onefile --windowed --icon=img/logo.ico --name=PNGtoICO --version-file=version_info.txt converter.pyw

Executable

In the build folder, you will find the file PNGtoICO.zip, which contains the executable version of the converter.pyw script.

Screenshot

Screenshot PNGtoICO

About

A Python script with a PyQt interface that converts PNG files to ICO files

Topics

Resources

Stars

Watchers

Forks

Languages