imagequant 1.1.3__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.3/imagequant.egg-info → imagequant-1.1.4}/PKG-INFO +19 -3
  2. {imagequant-1.1.3 → imagequant-1.1.4}/README.rst +5 -1
  3. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant/__init__.py +3 -0
  4. {imagequant-1.1.3 → imagequant-1.1.4/imagequant.egg-info}/PKG-INFO +19 -3
  5. {imagequant-1.1.3 → imagequant-1.1.4}/setup.py +1 -1
  6. {imagequant-1.1.3 → imagequant-1.1.4}/LICENSE +0 -0
  7. {imagequant-1.1.3 → imagequant-1.1.4}/MANIFEST.in +0 -0
  8. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant/libimagequant.h +0 -0
  9. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant/libimagequant_build.py +0 -0
  10. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant.egg-info/SOURCES.txt +0 -0
  11. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant.egg-info/dependency_links.txt +0 -0
  12. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant.egg-info/requires.txt +0 -0
  13. {imagequant-1.1.3 → imagequant-1.1.4}/imagequant.egg-info/top_level.txt +0 -0
  14. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/COPYRIGHT +0 -0
  15. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/README.md +0 -0
  16. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/blur.c +0 -0
  17. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/blur.h +0 -0
  18. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/kmeans.c +0 -0
  19. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/kmeans.h +0 -0
  20. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/libimagequant.c +0 -0
  21. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/libimagequant.h +0 -0
  22. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/mediancut.c +0 -0
  23. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/mediancut.h +0 -0
  24. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/mempool.c +0 -0
  25. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/mempool.h +0 -0
  26. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/nearest.c +0 -0
  27. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/nearest.h +0 -0
  28. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/pam.c +0 -0
  29. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/pam.h +0 -0
  30. {imagequant-1.1.3 → imagequant-1.1.4}/libimagequant/version.txt +0 -0
  31. {imagequant-1.1.3 → imagequant-1.1.4}/pyproject.toml +0 -0
  32. {imagequant-1.1.3 → 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.3
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
@@ -22,6 +22,18 @@ Requires-Dist: black; extra == "dev"
22
22
  Requires-Dist: pytest; extra == "dev"
23
23
  Provides-Extra: pil
24
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
25
37
 
26
38
  Imagequant Python - Python Bindings for libimagequant
27
39
  =====================================================
@@ -167,7 +179,11 @@ Changelog
167
179
 
168
180
  * Nothing yet ;)
169
181
 
170
- ** **v1.1.3:**
182
+ * **v1.1.4:**
183
+
184
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
185
+
186
+ * **v1.1.3:**
171
187
 
172
188
  * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
173
189
 
@@ -142,7 +142,11 @@ Changelog
142
142
 
143
143
  * Nothing yet ;)
144
144
 
145
- ** **v1.1.3:**
145
+ * **v1.1.4:**
146
+
147
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
148
+
149
+ * **v1.1.3:**
146
150
 
147
151
  * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
148
152
 
@@ -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.3
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
@@ -22,6 +22,18 @@ Requires-Dist: black; extra == "dev"
22
22
  Requires-Dist: pytest; extra == "dev"
23
23
  Provides-Extra: pil
24
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
25
37
 
26
38
  Imagequant Python - Python Bindings for libimagequant
27
39
  =====================================================
@@ -167,7 +179,11 @@ Changelog
167
179
 
168
180
  * Nothing yet ;)
169
181
 
170
- ** **v1.1.3:**
182
+ * **v1.1.4:**
183
+
184
+ * fix: Cleanup before throwing RuntimeError to avoid memory leak (@laggykiller, #26)
185
+
186
+ * **v1.1.3:**
171
187
 
172
188
  * misc(deps): Fixed PyPy builds on Windows platform (@flozz)
173
189
 
@@ -13,7 +13,7 @@ if os.path.isfile("README.rst"):
13
13
 
14
14
  setup(
15
15
  name="imagequant",
16
- version="1.1.3",
16
+ version="1.1.4",
17
17
  description="Image Quantization Library",
18
18
  url="https://github.com/wanadev/imagequant-python",
19
19
  project_urls={
File without changes
File without changes
File without changes
File without changes