A png to ico converter
Project description
pnic
一个简单易用的 PNG 转 ICO 图标转换器。
功能
- 将 PNG 图片转换为 ICO 图标格式
- 支持多种尺寸缩放(128x128, 64x64, 32x32, 16x16)
- 自定义输出路径和文件名
- 命令行界面,使用简单
安装
pip install -e .
使用方法
pnic <input.png> [选项]
参数说明
file: 输入的 PNG 图片路径-o, --output-dir: 输出目录(默认:当前目录)-n, --output-name: 输出文件名(默认:与输入文件同名)-s, --scale: 图标尺寸,可选值:128, 64, 32, 16(默认:64)
示例
# 基本用法,转换为 64x64 图标
pnic image.png
# 指定输出目录
pnic image.png -o ./icons
# 指定输出文件名
pnic image.png -n myicon
# 转换为 128x128 大图标
pnic image.png -s 128
# 组合使用
pnic logo.png -o ./dist -n favicon -s 32
依赖
- Python >= 3.12
- Pillow
- Typer
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pnic-0.1.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pnic-0.1.0-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file pnic-0.1.0.tar.gz.
File metadata
- Download URL: pnic-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb1e72e1128d3b19ac760fc878a68971da978411e576509e3ba7c6a1e56c0aa5
|
|
| MD5 |
a45e5939a65c6daf8ce0a3aab943c9f4
|
|
| BLAKE2b-256 |
b966901a4450401c7dcf3b655b21d902029c7cbd6d9979f71fd39d8d795621a5
|
File details
Details for the file pnic-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pnic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f8200f3614b2a6ec3291c65846a4ab25c2df6d1712ecf097d8bf53db834add0
|
|
| MD5 |
a1f33e232d71c0f88802ddab7c25dbd3
|
|
| BLAKE2b-256 |
b9b6832963cfc4a4f86c9e564e619899aac481b31446448e463ed1f12fd5b109
|