imagequant 1.1.2__tar.gz → 1.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. {imagequant-1.1.2/imagequant.egg-info → imagequant-1.1.4}/PKG-INFO +22 -3
  2. {imagequant-1.1.2 → imagequant-1.1.4}/README.rst +8 -0
  3. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant/__init__.py +3 -0
  4. {imagequant-1.1.2 → imagequant-1.1.4/imagequant.egg-info}/PKG-INFO +22 -3
  5. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant.egg-info/SOURCES.txt +1 -0
  6. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant.egg-info/requires.txt +0 -1
  7. imagequant-1.1.4/pyproject.toml +7 -0
  8. {imagequant-1.1.2 → imagequant-1.1.4}/setup.py +1 -3
  9. {imagequant-1.1.2 → imagequant-1.1.4}/LICENSE +0 -0
  10. {imagequant-1.1.2 → imagequant-1.1.4}/MANIFEST.in +0 -0
  11. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant/libimagequant.h +0 -0
  12. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant/libimagequant_build.py +0 -0
  13. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant.egg-info/dependency_links.txt +0 -0
  14. {imagequant-1.1.2 → imagequant-1.1.4}/imagequant.egg-info/top_level.txt +0 -0
  15. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/COPYRIGHT +0 -0
  16. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/README.md +0 -0
  17. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/blur.c +0 -0
  18. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/blur.h +0 -0
  19. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/kmeans.c +0 -0
  20. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/kmeans.h +0 -0
  21. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/libimagequant.c +0 -0
  22. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/libimagequant.h +0 -0
  23. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/mediancut.c +0 -0
  24. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/mediancut.h +0 -0
  25. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/mempool.c +0 -0
  26. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/mempool.h +0 -0
  27. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/nearest.c +0 -0
  28. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/nearest.h +0 -0
  29. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/pam.c +0 -0
  30. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/pam.h +0 -0
  31. {imagequant-1.1.2 → imagequant-1.1.4}/libimagequant/version.txt +0 -0
  32. {imagequant-1.1.2 → imagequant-1.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: imagequant
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Image Quantization Library
5
5
  Home-page: https://github.com/wanadev/imagequant-python
6
6
  Author: Wanadev
@@ -15,7 +15,6 @@ Project-URL: Chat, https://discord.gg/BmUkEdMuFp
15
15
  Keywords: image libimagequant pngquant cffi
16
16
  License-File: LICENSE
17
17
  Requires-Dist: cffi>=1.0.0
18
- Requires-Dist: setuptools
19
18
  Provides-Extra: dev
20
19
  Requires-Dist: nox; extra == "dev"
21
20
  Requires-Dist: flake8; extra == "dev"
@@ -23,6 +22,18 @@ Requires-Dist: black; extra == "dev"
23
22
  Requires-Dist: pytest; extra == "dev"
24
23
  Provides-Extra: pil
25
24
  Requires-Dist: pillow; extra == "pil"
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: description
28
+ Dynamic: home-page
29
+ Dynamic: keywords
30
+ Dynamic: license
31
+ Dynamic: license-file
32
+ Dynamic: maintainer
33
+ Dynamic: project-url
34
+ Dynamic: provides-extra
35
+ Dynamic: requires-dist
36
+ Dynamic: summary
26
37
 
27
38
  Imagequant Python - Python Bindings for libimagequant
28
39
  =====================================================
@@ -168,6 +179,14 @@ Changelog
168
179
 
169
180
  * Nothing yet ;)
170
181
 
182
+ * **v1.1.4:**
183
+
184
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
185
+
186
+ * **v1.1.3:**
187
+
188
+ * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
189
+
171
190
  * **v1.1.2:**
172
191
 
173
192
  * misc: Removed PyPy wheels for Windows AMD64 as they won't build (@flozz)
@@ -142,6 +142,14 @@ Changelog
142
142
 
143
143
  * Nothing yet ;)
144
144
 
145
+ * **v1.1.4:**
146
+
147
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
148
+
149
+ * **v1.1.3:**
150
+
151
+ * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
152
+
145
153
  * **v1.1.2:**
146
154
 
147
155
  * misc: Removed PyPy wheels for Windows AMD64 as they won't build (@flozz)
@@ -125,6 +125,9 @@ def quantize_raw_rgba_bytes(
125
125
  liq_result_p = ffi.new("liq_result**")
126
126
  code = lib.liq_image_quantize(liq_image, liq_attr, liq_result_p)
127
127
  if code != lib.LIQ_OK:
128
+ lib.liq_result_destroy(liq_result_p[0])
129
+ lib.liq_image_destroy(liq_image)
130
+ lib.liq_attr_destroy(liq_attr)
128
131
  raise RuntimeError(_get_error_msg(code))
129
132
  lib.liq_set_dithering_level(liq_result_p[0], dithering_level)
130
133
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: imagequant
3
- Version: 1.1.2
3
+ Version: 1.1.4
4
4
  Summary: Image Quantization Library
5
5
  Home-page: https://github.com/wanadev/imagequant-python
6
6
  Author: Wanadev
@@ -15,7 +15,6 @@ Project-URL: Chat, https://discord.gg/BmUkEdMuFp
15
15
  Keywords: image libimagequant pngquant cffi
16
16
  License-File: LICENSE
17
17
  Requires-Dist: cffi>=1.0.0
18
- Requires-Dist: setuptools
19
18
  Provides-Extra: dev
20
19
  Requires-Dist: nox; extra == "dev"
21
20
  Requires-Dist: flake8; extra == "dev"
@@ -23,6 +22,18 @@ Requires-Dist: black; extra == "dev"
23
22
  Requires-Dist: pytest; extra == "dev"
24
23
  Provides-Extra: pil
25
24
  Requires-Dist: pillow; extra == "pil"
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: description
28
+ Dynamic: home-page
29
+ Dynamic: keywords
30
+ Dynamic: license
31
+ Dynamic: license-file
32
+ Dynamic: maintainer
33
+ Dynamic: project-url
34
+ Dynamic: provides-extra
35
+ Dynamic: requires-dist
36
+ Dynamic: summary
26
37
 
27
38
  Imagequant Python - Python Bindings for libimagequant
28
39
  =====================================================
@@ -168,6 +179,14 @@ Changelog
168
179
 
169
180
  * Nothing yet ;)
170
181
 
182
+ * **v1.1.4:**
183
+
184
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
185
+
186
+ * **v1.1.3:**
187
+
188
+ * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
189
+
171
190
  * **v1.1.2:**
172
191
 
173
192
  * misc: Removed PyPy wheels for Windows AMD64 as they won't build (@flozz)
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  MANIFEST.in
3
3
  README.rst
4
+ pyproject.toml
4
5
  setup.py
5
6
  imagequant/__init__.py
6
7
  imagequant/libimagequant.h
@@ -1,5 +1,4 @@
1
1
  cffi>=1.0.0
2
- setuptools
3
2
 
4
3
  [dev]
5
4
  nox
@@ -0,0 +1,7 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools",
4
+ # ↓ See https://github.com/wanadev/mozjpeg-lossless-optimization/issues/26
5
+ "setuptools<74; platform_system=='Windows' and implementation_name=='pypy'",
6
+ ]
7
+ build-backend = "setuptools.build_meta"
@@ -13,7 +13,7 @@ if os.path.isfile("README.rst"):
13
13
 
14
14
  setup(
15
15
  name="imagequant",
16
- version="1.1.2",
16
+ version="1.1.4",
17
17
  description="Image Quantization Library",
18
18
  url="https://github.com/wanadev/imagequant-python",
19
19
  project_urls={
@@ -32,11 +32,9 @@ setup(
32
32
  packages=find_packages(),
33
33
  setup_requires=[
34
34
  "cffi>=1.0.0",
35
- "setuptools",
36
35
  ],
37
36
  install_requires=[
38
37
  "cffi>=1.0.0",
39
- "setuptools",
40
38
  ],
41
39
  extras_require={
42
40
  "dev": [
File without changes
File without changes
File without changes