Files
image2icon/README.md

43 lines
943 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 图片转Icon转换器
一个简单易用的GUI应用程序可以将PNG、JPG、BMP等格式的图片转换为32x32像素的ICO图标文件。
## 功能特性
- 支持拖放操作,可直接将图片拖拽到应用窗口
- 支持多种图片格式PNG、JPG、JPEG、BMP
- 图形化界面,操作简单直观
- 实时预览转换后的图标
- 美观的深色主题界面
## 使用方法
1. 运行程序
2. 通过以下方式之一加载图片:
- 点击"选择图片"按钮
- 或直接将图片文件拖拽到窗口中的拖放区域
3. 点击"转换为Icon"按钮
4. 选择保存位置和文件名(自动添加.ico扩展名
5. 转换完成,图标文件已保存
## 依赖库
- PySide6
## 安装依赖
```bash
pip install PySide6
```
## 运行程序
```bash
python image_to_icon_converter.py
```
## 开发信息
- 使用Python 3开发
- 基于PySide6构建GUI界面
- 转换后的图标大小为32x32像素