# png-dilator **Repository Path**: mumucode/png-dilator ## Basic Information - **Project Name**: png-dilator - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 17 - **Created**: 2021-05-10 - **Last Updated**: 2021-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Dilate texture with low alpha pixel to prevent "black edge" when rendered by GL 介绍 工具原理解释 https://forum.cocos.org/t/topic/112300 工具使用方法 (本工具会批量修改图片文件,使用前请务必备份图片!!!) (本工具会批量修改图片文件,使用前请务必备份图片!!!) (本工具会批量修改图片文件,使用前请务必备份图片!!!) 如何安装 工具使用python3编写,需读者自行安装python3环境 方法1(推荐): 通过pip下载安装 pip install png-dilator 方法2: 本地安装 从商店页面下载的工具包是一个whl文件,如果是zip文件需要先解压 pip install "whl文件路径" 如何调用 目前只提供基础功能,只能通过命令调用,没有集成到IDE里。 图片过程可重入,已经处理过的图片二次处理不会产生变化。 批量处理目录下的图片,原地修改: python -m dilator dilate_dir "图片目录绝对路径" 处理单个图片: python -m dilator dilate "图片绝对路径" "图片输出路径"