mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-10 23:34:44 +03:00
Revert "raise limits to skip webp alpha tests for libwebp <= 0.2.1"
This reverts commit dd2266d8a6
.
This commit is contained in:
parent
dd2266d8a6
commit
0b252ed89d
8
_webp.c
8
_webp.c
|
@ -228,14 +228,10 @@ PyObject* WebPDecoderVersion_wrapper(PyObject* self, PyObject* args){
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The version of webp that ships with (0.1.3) Ubuntu 12.04 doesn't handle alpha well.
|
* The version of webp that ships with (0.1.3) Ubuntu 12.04 doesn't handle alpha well.
|
||||||
* Files that are valid with 0.3 are reported as being invalid.
|
* Files that are valid with 0.3 are reported as being invalid.
|
||||||
* 0.2.1, that ships with openSUSE 12.3 fails consistently with:
|
|
||||||
* AssertionError: average pixel value difference 3.0000 > epsilon 1.0000
|
|
||||||
* therefor, we're suppressing alpha channel tests for webp <= 0.2.1, and users of this
|
|
||||||
* part of the lib are being warned
|
|
||||||
*/
|
*/
|
||||||
PyObject* WebPDecoderBuggyAlpha_wrapper(PyObject* self, PyObject* args){
|
PyObject* WebPDecoderBuggyAlpha_wrapper(PyObject* self, PyObject* args){
|
||||||
return Py_BuildValue("i", WebPGetDecoderVersion()<=0x0201);
|
return Py_BuildValue("i", WebPGetDecoderVersion()==0x0103);
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyMethodDef webpMethods[] =
|
static PyMethodDef webpMethods[] =
|
||||||
|
|
Loading…
Reference in New Issue
Block a user