Spaces:
Runtime error
Runtime error
artificialguybr
commited on
Commit
•
f19abfb
1
Parent(s):
7092d06
Update image_processing.py
Browse files- image_processing.py +2 -2
image_processing.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from PIL import Image
|
2 |
|
3 |
DITHER_METHODS = {
|
4 |
-
"None":
|
5 |
-
"Floyd-Steinberg":
|
6 |
}
|
7 |
|
8 |
QUANTIZATION_METHODS = {
|
|
|
1 |
from PIL import Image
|
2 |
|
3 |
DITHER_METHODS = {
|
4 |
+
"None": Image.Dither.NONE,
|
5 |
+
"Floyd-Steinberg": Image.Dither.FLOYDSTEINBERG
|
6 |
}
|
7 |
|
8 |
QUANTIZATION_METHODS = {
|