Yay295
c56c8901b7
handle I;16 native endianness on big-endian machine
2024-03-11 11:37:48 -05:00
Nulano
0eb661b889
do not crop ImageFont glyphs from negative coordinates
2024-01-01 11:35:42 +01:00
Andrew Murray
492e5b0e0a
Do not set default value for unused variable
2024-01-01 16:18:26 +11:00
Andrew Murray
6cad0d62e7
Do not crop again if glyph is the same as the previous one
2024-01-01 16:14:45 +11:00
Andrew Murray
8676cbd4e7
Do not try and crop glyphs from outside of source ImageFont image
2024-01-01 16:13:24 +11:00
Andrew Murray
ceca12e876
Restored comment
2023-10-07 07:00:29 +00:00
Andrew Murray
d9283fd1f8
Use default value
...
Co-authored-by: Alexander Karpinsky <homm86@gmail.com>
2023-10-07 17:09:17 +11:00
Andrew Murray
57c1cf603e
Fixed may be used uninitialized warning
2023-10-07 01:15:04 +11:00
Andrew Murray
4e7f61f459
Merge branch 'main' into bgr
2023-10-06 18:50:25 +11:00
Andrew Murray
c167d7a269
Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii
2023-08-12 12:09:20 +10:00
Andrew Murray
9bd574058e
Support BGR;15, BGR;16 and BGR;24 in putdata
2023-07-26 20:09:40 +10:00
Andrew Murray
3230270aa7
Added BGR;15, BGR;16 and BGR;24 access
2023-07-26 20:09:40 +10:00
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
17b19b5668
Merge branch 'main' into apng
2023-06-14 11:26:42 +10:00
Andrew Murray
aeb6e9909e
Removed unused argument
2023-06-10 15:57:05 +10:00
Andrew Murray
96bdbc4afe
Renamed variable
2023-04-29 19:11:02 +10:00
Andrew Murray
ebd3c47425
When saving, allow alpha differences to indicate different frames
2023-04-29 15:02:11 +10:00
Andrew Murray
59d67fa68a
Only call PyTuple_Check once in getink
2023-03-31 21:59:06 +11:00
Andrew Murray
d84e227204
Fixed warning that variable may be uninitialized
2023-03-31 21:52:37 +11:00
Hugo van Kemenade
f191666a91
Merge pull request #6999 from radarhere/null
...
Handle failure from PyDict_New or PyList_New
2023-03-31 08:32:13 +03:00
Andrew Murray
0ea1184bcf
Free additional variables
...
Co-authored-by: Ondrej Baranovič <3819630+nulano@users.noreply.github.com>
2023-03-30 07:54:01 +11:00
Andrew Murray
d5d830dd00
Merge branch 'main' into bgr32
2023-03-25 23:45:48 +11:00
Andrew Murray
dc79a09d62
Merge branch 'main' into null
2023-03-22 18:56:52 +11: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
11d100ce5d
Support creating BGR;15, BGR;16 and BGR;24 images
2023-03-20 00:30:10 +11:00
Andrew Murray
01cdfb6b27
Removed duplicate calls to PyTuple_GET_SIZE
2023-03-19 23:29:17 +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
929dbba834
Handle failure from PyDict_New or PyList_New
2023-03-10 17:37:06 +11:00
Andrew Murray
a4965a7eaa
Split into x and y errors
2023-03-01 22:06:40 +11:00
Andrew Murray
b84c29a035
Raise an error if co-ordinates are incorrectly ordered
2023-03-01 11:22:35 +11:00
Hugo van Kemenade
826c98156c
Remove unused listwindows functions for Windows/3.12 support
2023-02-11 16:36:52 +02:00
Andrew Murray
08816f43ae
Added support for I;16 modes in putdata()
2022-12-26 18:35:24 +11:00
Eric Soroos
41987cffad
Fix compiler error:
...
src/_imaging.c:1842:17: warning: ‘ImagingTransform’ accessing 64 bytes in a region of size 48 [-Wstringop-overflow=]
1842 | imOut = ImagingTransform(
| ^~~~~~~~~~~~~~~~~
1843 | imOut, imIn, IMAGING_TRANSFORM_AFFINE, 0, 0, xsize, ysize, a, filter, 1);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/_imaging.c:1842:17: note: referencing argument 8 of type ‘double *’
2022-11-03 22:57:39 +01:00
Andrew Murray
948c064b28
Allow getpalette() to return less than 256 colors
2022-02-16 09:56:13 +11:00
Andrew Murray
9cdb0508b6
Attach RGBA palettes from putpalette() when suitable
2022-02-14 20:28:47 +11:00
Andrew Murray
e0d5417bcd
Raise an error if sequence is not flattened
2021-12-28 09:38:41 +11:00
Andrew Murray
e9294d890f
Accept float values for putdata() in Python 3.10
2021-12-28 09:38:41 +11:00
Andrew Murray
90a52d3c0d
Added width argument to polygon
2021-11-16 22:02:54 +11:00
Andrew Murray
aa4489c993
Keep palette the same length
2021-06-19 09:31:46 +10:00
Hugo van Kemenade
affa059e95
Merge pull request #5504 from radarhere/tuple_size
...
Added specific error messages when ink has incorrect number of bands
2021-05-23 17:18:38 +03:00
Andrew Murray
a1412681ff
Added specific error messages when ink has incorrect number of bands
2021-05-19 20:19:57 +10:00
Andrew Murray
ff0c0afb2c
Use PyTuple_GET_SIZE since variable is known to be a tuple
2021-05-19 19:51:45 +10:00
Andrew Murray
29c6f53e99
Use METH_NOARGS when no arguments are required
2021-05-11 20:19:17 +10:00
Andrew Murray
f2ee5d6697
Use METH_VARARGS flags
2021-05-11 20:16:44 +10:00
Hugo van Kemenade
683affa29c
Merge pull request #5206 from radarhere/numpy
2021-03-31 17:46:32 +03:00
Andrew Murray
685e951182
Removed unused C code
2021-01-30 11:23:24 +11:00
Andrew Murray
bdbf1694fc
Allow PixelAccess to use Python __int__ when parsing x and y
2021-01-14 21:31:25 +11:00
Andrew Murray
cf190a3c2f
PyModule_AddObject fix for Python 3.10
2021-01-09 12:17:57 +11:00