Thanks to visit codestin.com
Credit goes to github.com

Skip to content

新增批量图片转换功能(格式 / 尺寸 / 通道) #147

@rs1973-bit

Description

@rs1973-bit

功能说明

您好,我最近在使用 python-office 的过程中,注意到目前似乎还没有针对图片的批量处理功能。
我开发了一个基于 Pillow 的小工具,可以批量完成以下任务:

  批量图片格式转换(JPG, PNG, BMP, WEBP, TIFF, GIF);
  可选调整尺寸(支持自动填充白色或透明背景)
  支持 RGBA 通道;
  GIF 合成功能(可设置帧间隔)。

  技术说明:

  依赖库:仅使用 Pillow(轻量、易安装、适合普通办公电脑);
  已在 Windows 环境下测试;

早期曾实现多进程版本,但在 3000 张图片压力测试中 CPU 过载,因此当前采用单线程稳定实现。

想请教

项目目前是否已有类似功能模块?

如果没有,是否欢迎我将此功能整理成子模块提交 PR?

若您方便查看,我可以提供部分核心代码片段或完整脚本以供参考。
感谢您阅读!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions