Skip to content
This repository has been archived by the owner on Aug 6, 2019. It is now read-only.
/ pngquant-py Public archive

Export some handful interfaces for using pngquant in Python via cffi.

Notifications You must be signed in to change notification settings

bcho/pngquant-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pngquant-py

[WIP]

Export some handful interfaces for using pngquant in Python via cffi.

pngquant.tiny

Compress png image and reduce its size.

Usage

from pngquant import tiny

# .. get origin image's width & height

with open('origin.png', 'rb') as origin:
    rv = tiny(origin.read(), origin_img_width, origin_img_height)
    with open('compressed.png', 'wb') as compressed:
        compressed.write(rv)

TODO

  • [?] Add setup informations.
  • [?] Add some testcases.
  • [?] Clear some code todos.
  • [?] Add options for interfaces.

About

Export some handful interfaces for using pngquant in Python via cffi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published