Skip to content

A small program that strips out useless data out of PNG bytestream to reduce the filesize.

License

GPL-3.0, Unlicense licenses found

Licenses found

GPL-3.0
LICENSE
Unlicense
LICENSE.md
Notifications You must be signed in to change notification settings

tripulse/pngminifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version

Program for chunk-level PNG manipulation. Strips out ancillary information (eg. EXIF tags).

usage: __main__.py [-h] [-o OUTPUT] [--include-useful] [INPUT]

positional arguments:
  INPUT             input PNG file to read from, by default stdin

optional arguments:
  -h, --help        show this help message and exit
  -o OUTPUT         output PNG file to write to, by default stdout
  --include-useful  include useful chunks too (not recommended)

By default it lets through bare-minimum of chunks required for proper functionality (IHDR, IDAT, IEND, PLTE) and chunks that it deems useful (gAMA, tRNS, iCCP) if --include-useful is specified. All other chunks are discarded to maintain standard compliance.

About

A small program that strips out useless data out of PNG bytestream to reduce the filesize.

Resources

License

GPL-3.0, Unlicense licenses found

Licenses found

GPL-3.0
LICENSE
Unlicense
LICENSE.md

Stars

Watchers

Forks

Languages