You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PNG to Icons with GUI/README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,16 @@
1
1
# PNG to Icon Converter (GUI)
2
2
3
-
A simple Python GUI tool to convert PNG images into icon formats for Windows (.ico), macOS (.icns), and Linux (multiple PNG sizes). Built with PySide6and Pillow.
3
+
A simple Python GUI tool to convert PNG and SVG images into icon formats for Windows (.ico), macOS (.icns), and Linux (multiple PNG sizes). Built with PySide6, Pillow, and CairoSVG.
4
4
5
5
---
6
6
7
+
7
8
## Features
8
-
- 🖼️ Select a PNG file and convert it to:
9
-
- Windows .ico (16x16, 32x32, 48x48, 256x256)
9
+
- 🖼️ Select a PNG or SVG file and convert it to:
10
+
- Windows .ico (user-selectable sizes)
10
11
- macOS .icns
11
-
- Linux PNG icons (16x16 up to 512x512)
12
+
- Linux PNG icons (user-selectable sizes)
13
+
- ☑️ Checkboxes to select which icon sizes to output
12
14
- 📂 Choose output directory
13
15
- ⚡ Fast, one-click conversion
14
16
- ❌ Error handling with pop-up dialogs
@@ -17,13 +19,15 @@ A simple Python GUI tool to convert PNG images into icon formats for Windows (.i
17
19
18
20
## Requirements
19
21
22
+
20
23
- Python 3.8+
21
24
- PySide6
22
25
- Pillow
26
+
- CairoSVG (for SVG support)
23
27
24
28
Install dependencies:
25
29
```bash
26
-
pip install PySide6 Pillow
30
+
pip install PySide6 Pillow cairosvg
27
31
```
28
32
29
33
---
@@ -35,9 +39,9 @@ pip install PySide6 Pillow
35
39
python png2icon.py
36
40
```
37
41
2. Click **"Select PNG and Convert"**
38
-
3. Choose a PNG file
42
+
3. Choose a PNG or SVG file
39
43
4. Select a directory to save the icons
40
-
5. Icons for Windows, macOS, and Linux will be created in the chosen folder
44
+
5. Icons for Windows, macOS, and Linux will be created in the chosen folder, in the sizes you selected
0 commit comments