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.
- PyQt5
- pillow
- Install the necessary dependencies:
pip install PyQt5
pip install pillow
- Run the program:
python converter.pyw
-
In the main window of the program, click on the "Convert from PNG to ICO" button.
-
A file dialog window will appear to select a PNG file to convert. Select the desired file and click "Open".
-
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.
-
Next, a file dialog window will appear to select the save location for the converted ICO file. Select the desired location and click "Save".
-
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.
- Install the necessary dependencies:
pip install pyinstaller
- 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
In the build
folder, you will find the file PNGtoICO.zip
, which contains the executable version of the converter.pyw
script.