Skip to content

Command line tool for compressing images with TinyPNG without requiring a key; Smart WebP, PNG and JPEG Compression for Faster Websites

Notifications You must be signed in to change notification settings

phk422/tinypng-plus-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinypng

Command line tool for compressing images with TinyPNG without requiring a key; Smart WebP, PNG and JPEG Compression for Faster Websites

无需申请 KEY, 可直接使用TinyPng压缩图片的命令行工具。

Installation

npm install -g tinypng-plus-cli

Usage

> tinypng-plus-cli -h

Usage: index [options]

Options:
  -i, --input <input...>  input path list, The total file size cannot exceed 5M
  -o, --output <output>   output folder (default: ".")
  -r, --rename <name>     the output file is renamed (default: "tinified")
  -h, --help              display help for command

Example

tinypng-plus-cli -i .\test2.jpg .\images d:\static\images

TODO

边界情况处理

About

Command line tool for compressing images with TinyPNG without requiring a key; Smart WebP, PNG and JPEG Compression for Faster Websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published