Skip to main content

图片批量缩放与压缩工具 - 批量调整图片尺寸、压缩图片大小、查看图片信息

Project description

img-resize-kit 图片批量缩放与压缩工具

PyPI version Downloads License

安装

pip install img-resize-kit

用法

# 批量缩放图片(保持宽高比)
img-resize resize ./图片/ 800 600 ./输出/

# 批量压缩图片
img-resize compress ./图片/ 80

# 查看图片信息
img-resize info ./图片/

功能

缩放 (resize)

  • 批量调整图片到指定尺寸
  • 默认保持宽高比
  • 使用 LANCZOS 高质量重采样算法

压缩 (compress)

  • 批量压缩 JPEG 图片(调整质量参数)
  • PNG 图片自动优化
  • 显示压缩前后的文件大小对比

信息 (info)

  • 扫描目录中所有图片
  • 显示格式、尺寸、文件大小

支持

如果 img-resize-kit 帮到了您,欢迎打赏支持:

USDT (TRC20): TMPQygMkv42QPeyYnkxMkPwsqs7udbD2Aa

您的支持是开源项目持续发展的动力 ❤️

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

img_resize_kit-1.0.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

img_resize_kit-1.0.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file img_resize_kit-1.0.0.tar.gz.

File metadata

  • Download URL: img_resize_kit-1.0.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for img_resize_kit-1.0.0.tar.gz
Algorithm Hash digest
SHA256 807ce5bab2fffde47004ffa2beee1d62e07bacc8afe577bae24b1cc25ab5d3f8
MD5 213288cccabb9b87cbe429a282195515
BLAKE2b-256 3daf540926e510628bcaca1454df7e60d1cb8fcb6c788cab20c67aace5d012d0

See more details on using hashes here.

File details

Details for the file img_resize_kit-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: img_resize_kit-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for img_resize_kit-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20f19bd76c177c98f2fe14c7129bd56e2646292d3804ae8327945647b442f385
MD5 182558d449341ab6005bb86f7165960b
BLAKE2b-256 eead374940ceff90fc72816ff9daf3d94d3b2c46705d662754342c6c6c4bb6b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page