diff --git a/libpme.py b/libpme.py index fecc5ee..ef7ec39 100755 --- a/libpme.py +++ b/libpme.py @@ -130,3 +130,5 @@ class PME(object): self.recalculate_length(index) return True return False +decompress = zlib.decompress +compress = zlib.compress diff --git a/readme.md b/readme.md index 4e45c19..4da3205 100755 --- a/readme.md +++ b/readme.md @@ -131,5 +131,8 @@ The output should look something like this: ## Changelog +### 1.2 +You can now do `libpme.compress` instead of having to write `libpme.PME.compress` + ### 1.1 Added the damaged argument to the constructor. If damaged is set to true, it will allow you to open potentially damaged png files, which maybe don't have IDAT as the first chunk, or have invalid CRCs diff --git a/setup.py b/setup.py index 4bb4cd9..6c94661 100755 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ #from distutils.core import setup from setuptools import setup setup(name='libpme', - version='1.1', + version='1.2', description="PNG metadata editor library", author="Niles Rogoff", author_email="me@niles.xyz",