Giter VIP home page Giter VIP logo

fihe's Introduction

文件帮助器

文件帮助器主要是协助你自动化处理大批量文件,例如文件去重和图片处理。

目前支持:

  • 文件去重:自动移除目录下的重复文件到目标目录。
  • 图片处理: 将图片文件转换成base64字符串,或者压缩图片等。

1. 环境

编译器 >= Python3.6

包管理工具 >= pip3

2. 安装

python3 setup.py install

3. 用法

3.1. 帮助

fihe -h

3.2. 文件去重

  • 查看重复文件

    fihe dedu ls --root-dir="<absolute_root_dir>"

    注意root-dir是你查看重复文件的根目录。

  • 去除重复文件

    fihe dedu rm --root-dir="<absolute_root_dir>" --target-dir="<absolute_target_dir>"

    注意root-dir是你将要进行文件去重复的目录,target-dir是重复文件将要移动到的目标目录。

3.3. 图片处理

  • 图片编码转换

    fihe image its --file-path="<absolute_file_path>"

    注意file-path是你将要进行编码转换的图片地址。

  • 压缩图片

    fihe image ci --input="<absolute_file_path>" --quality="" 注意input是你将要进行压缩的图片地址,quality是压缩后的图片质量百分比,整数值范围(0, 100]

fihe's People

Contributors

xijiz avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.