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
Metadata
Release files for pnic 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pnic-0.1.0.tar.gz | 2.2 kB | Without provenance | Details for pnic-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pnic-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pnic-0.1.0-py3-none-any.whl |
Total release size: 4.6 kB
Release files / pnic-0.1.0.tar.gz
| Download URL | pnic-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb1e72e1128d3b19ac760fc878a68971da978411e576509e3ba7c6a1e56c0aa5
|
|
BLAKE2b-256 checksum How to use checksums |
b966901a4450401c7dcf3b655b21d902029c7cbd6d9979f71fd39d8d795621a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / pnic-0.1.0-py3-none-any.whl
| Download URL | pnic-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f8200f3614b2a6ec3291c65846a4ab25c2df6d1712ecf097d8bf53db834add0
|
|
BLAKE2b-256 checksum How to use checksums |
b9b6832963cfc4a4f86c9e564e619899aac481b31446448e463ed1f12fd5b109
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for pnic 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.