Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

elmoiv/tinypyng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

26 Commits

Repository files navigation

TinyPyng

Compress pictures using tinypng.com without API token

Features

  • No API Token required
  • Bypass Size limit
  • Can compress files recursively
  • Powerful options

Usage

> python tinypyng.py --help
usage: tinypyng.py [-h] -p PATH [-r] [-o OUTPUT] [-m MAX] [-ow]
Argument parser for tinypyng
required arguments:
 -p PATH, --path PATH PNG or JPG file, Directory of PNGs, txt file of paths
optional arguments:
 -r, --recursive Recursively compress the photo to the maximum possible
 limit
 -o OUTPUT, --output OUTPUT
 Custom folder to store compressed pictures
 -m MAX, --max MAX Maximum compression ratio -- Default is 50 --
 -ow, --overwrite Overwrite input PNG

Examples

// Compress a single png
> python tinypyng.py -p "path\\to\\file.png"
// Compress a single png recursively
> python tinypyng.py -p "path\\to\\file.png" -r
// Compress a single png recursively with maximum compression
// of 70 %
> python tinypyng.py -p "path\\to\\file.png" -r -m 70
// Compress all pictures inside folder
> python tinypyng.py -p "path\\to\\folder\\"
// Compress all pictures from a .txt file
> python tinypyng.py -p "path\\to\\file.txt"
// Compress all pictures inside folder recursively and
// store them in custom folder
> python tinypyng.py -p "path\\to\\folder\\" -r -o "path\\to\\custom_folder\\"

Contributing

Please contribute! If you want to fix a bug, suggest improvements, or add new features to the project, just open an issue or send me a pull request.

About

Compress pictures using tinypng.com without API token

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /