Yay295
e7398c7888
update PyTypeObject slot names
...
tp_print was renamed to tp_vectorcall_offset with Python 3.8, and tp_compare was renamed to tp_as_async with Python 3.5.
tp_size has always been tp_basicsize; I don't know why that one was wrong.
2023-07-02 00:52:08 -05:00
Andrew Murray
dc79a09d62
Merge branch 'main' into null
2023-03-22 18:56:52 +11:00
Hugo van Kemenade
e7fa3091a0
Merge pull request #7003 from radarhere/reference_count
...
Decrement reference count
2023-03-22 08:05:17 +02:00
nulano
1a11ba662c
do not insert null into dict
2023-03-21 22:05:26 +00:00
Andrew Murray
6328662248
PyUnicode_* may return NULL
2023-03-20 17:36:55 +11:00
Andrew Murray
b3d7823740
Decrement reference count
2023-03-12 00:11:48 +11:00
Andrew Murray
c63b0ca210
Decrement reference count
2023-03-11 18:32:43 +11:00
Andrew Murray
347dea12a9
Moved potential error earlier
2023-03-10 23:13:15 +11:00
Yay295
556b672eb2
Fix webp dealloc method definitions
2022-11-27 17:48:12 -06:00
Alireza Shafaei
690446050a
minor fix in the comments
2022-11-18 23:26:08 -08:00
Alireza Shafaei
3587f27780
Added version check for WebP
2022-11-18 10:15:24 -08:00
Alireza Shafaei
1f6df76c42
updated webp with exact parameter.
2022-11-17 13:58:07 -08:00
Andrew Murray
d8f2fb50a4
Merge pull request #5404 from radarhere/feed
...
Changed error type to allow for incremental WebP parsing
2021-12-29 07:33:56 +11:00
Andrew Murray
34ad580f42
Fixed typo
2021-12-22 16:42:39 +11:00
Ilaï Deutel
596e80c654
WebP: Fix memory leak during decoding on failure
...
When creating the `WebPAnimDecoder` object, we create a `WebPAnimDecoderObject` and populate its data using `WebPDataCopy()`.
Subsequently, if either `WebPAnimDecoderNew()` or `WebPAnimDecoderGetInfo()` fails, data is not currently deallocated. This commit clears the decoder object's data in that situation.
2021-10-28 18:15:43 +00:00
Andrew Murray
4080f160b6
Include code in WebP error
2021-05-07 00:12:03 +10:00
Andrew Murray
35107e9637
Changed failure to create decoder to OSError for Parser
2021-04-14 20:01:56 +10:00
Andrew Murray
cf190a3c2f
PyModule_AddObject fix for Python 3.10
2021-01-09 12:17:57 +11:00
Andrew Murray
46b7e86bab
Format with ClangFormat
2021-01-03 14:17:51 +11:00
Axel Huebl
f79379ed7c
Imaging.h: confusion with system
...
The file `libImaging/Imaging.h` gets installed flat on
Ubuntus into the public Python includes.
When building a newer version of Pillow from source and
hinting the Python includes "too early" in includes, e.g.
in package managers, this can confuse the two files and
pick up the external file over the internal one. With
different versions, this mismatch can lead to build errors,
e.g. undefined macros.
The most robust way to avoid this is to pre-fix the internal
include accordingly, so that the relative path to the including
file has to match as well.
2020-09-17 18:06:45 +10:00
nulano
6c1ff252d6
check run-time version numbers where available, add docs
2020-06-21 18:58:39 +10:00
Hugo van Kemenade
713dd17c8f
Merge pull request #4547 from radarhere/webp
...
Added method argument to single frame WebP saving
2020-06-20 14:04:01 +03:00
Andrew Murray
c1d9931adc
Added braces
2020-05-10 19:56:36 +10:00
Andrew Murray
ae43af61da
Replaced tabs with spaces
2020-05-01 22:08:57 +10:00
Andrew Murray
f17f1bc607
Added method argument to single frame WebP saving
2020-04-11 20:43:49 +10:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Hugo van Kemenade
7b628a5ef6
Merge pull request #4433 from zt-initech/release_GIL_in_WEBP_encode
...
Release Python GIL during WEBP encode
2020-03-27 20:08:26 +02:00
Hugo van Kemenade
b1f22344b4
Style consistency
2020-03-26 19:07:51 +02:00
Zeev Tarantov
7df7cb25ee
release python GIL during WEBP encode
2020-02-25 15:15:26 +02:00
Andrew Murray
1dcf94af1b
Removed unused method
2020-02-24 22:48:42 +11:00
Andrew Murray
55b487368a
Use METH_NOARGS when no arguments are required
2020-02-24 22:48:42 +11:00
Hugo
af770a6c55
Drop support for EOL Python 2.7
2019-10-07 14:30:59 +03:00
Konstantin Kopachev
84b32a0388
Read/Save RGB webp as RGB (instead of RGBX)
2018-08-09 11:40:10 -07:00
Andrew Murray
c7427ae7f6
Fixed typos [ci skip]
2018-03-10 14:48:01 +11:00
Eric Soroos
0da68dee98
Fix leak opening _webp files
2018-01-24 13:22:51 +00:00
wiredfool
0bb3f4fee9
source layout reorg
2017-12-28 14:49:47 +00:00