Andrew Murray
1c8d270746
Merge pull request #8135 from mamg22/improved-xdg-dirs-support
...
Improve `ImageFont.freetype` support for XDG directories on Linux
2024-06-22 14:27:55 +10:00
Andrew Murray
cc83cc8ec8
Updated type hints
2024-06-22 10:09:11 +10:00
Andrew Murray
c155677c4f
Removed support for Qt 5
2024-06-22 00:39:37 +10:00
Andrew Murray
324e548e52
Added type hints to ImageFilter
2024-06-21 20:41:22 +10:00
Hugo van Kemenade
4b258be3bb
Merge pull request #8151 from radarhere/type_hint_imagedraw
2024-06-19 07:54:55 -06:00
Andrew Murray
7ab3aee7bc
Merge branch 'main' into xmp
2024-06-19 09:06:10 +10:00
Andrew Murray
9f79e5d768
Added type hints to ImageDraw shape methods
2024-06-19 08:43:23 +10:00
Andrew Murray
291ee35204
Added type hints
2024-06-18 23:03:03 +10:00
Andrew Murray
8d8852d744
Merge branch 'main' into type_hint_tests
2024-06-18 23:01:12 +10:00
mamg22
8d14a452df
Update test environment variable for ImageFont
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-06-15 19:50:10 -04:00
Andrew Murray
b3e3784b8e
Added byte support to FreeTypeFont
2024-06-15 16:06:45 +10:00
Andrew Murray
eea3ac765c
Deprecate non-image and unsupported modes
2024-06-12 22:44:03 +10:00
mamg22
1175e53d53
Set XDG_DATA_HOME on font tests
2024-06-11 22:08:53 -04:00
Hugo van Kemenade
47750bf9c3
Merge pull request #8129 from radarhere/libtiff_version
2024-06-11 06:26:56 -06:00
Hugo van Kemenade
7928bebd65
Merge pull request #8124 from radarhere/imagedraw_getdraw
2024-06-11 06:26:27 -06:00
Andrew Murray
84b2847232
Accept 't' suffix for libtiff version
2024-06-11 07:15:47 +10:00
Andrew Murray
9afe9d2769
Added type hints
2024-06-11 06:52:14 +10:00
Andrew Murray
b84c970fbf
Wait until all markers are read to process EXIF
2024-06-10 19:19:06 +10:00
Andrew Murray
8e8ee1e4c4
Accept 't' suffix for libtiff version
2024-06-10 17:38:17 +10:00
Andrew Murray
e225f9f589
Deprecate ImageDraw.getdraw hints argument
2024-06-10 11:50:13 +10:00
Andrew Murray
de0779eee8
Removed return value assertion
2024-06-09 18:09:54 +10:00
Andrew Murray
1a14957c19
Added type hints
2024-06-09 15:16:17 +10:00
Andrew Murray
08b5a2e9a7
Corrected using a 1 mode mask with I;16* images
2024-06-08 14:35:10 +10:00
Andrew Murray
ac7967cfc0
Do not preserve EXIFIFD tag by default
2024-06-07 13:25:56 +10:00
Andrew Murray
923d4e5e1a
Added type hints
2024-06-05 22:27:23 +10:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp
2024-06-05 15:53:46 +10:00
Andrew Murray
e9c9f19c26
Do not use first frame duration for other frames when saving
2024-06-04 18:46:35 +10:00
Andrew Murray
66ab7e0de2
Added type hints
2024-06-01 21:31:53 +10:00
Andrew Murray
afc7d8d0b0
Added type hints
2024-05-30 17:17:22 +10:00
Andrew Murray
e68cec640a
Added type hints
2024-05-30 12:00:50 +10:00
Andrew Murray
a6d1daeb4b
Added type hints
2024-05-29 22:51:02 +10:00
Andrew Murray
cac1a04329
Added test
2024-05-27 21:59:32 +10:00
Andrew Murray
f34360d1e3
When saving multiple frames, convert to mode rather than raw mode
2024-05-27 18:09:46 +10:00
Andrew Murray
930c423db1
Added ImageFont.load_default_imagefont()
2024-05-27 17:08:13 +10:00
Andrew Murray
804fe7bbf8
Do not read layers when opening
2024-05-23 17:50:50 +10:00
Andrew Murray
2dedeef832
Support unpacking more rawmodes to RGBA palette
2024-05-22 20:05:07 +10:00
Andrew Murray
05402f0e30
Merge branch 'main' into hdr
2024-05-22 07:42:23 +10:00
Andrew Murray
0f1a0fc501
Improved consistency of XMP handling
2024-05-20 23:11:50 +10:00
Andrew Murray
7554e2cfbf
Use monkeypatch
2024-05-17 08:44:04 +10:00
Andrew Murray
1036aa74a7
Added Image.WARN_POSSIBLE_FORMATS
2024-05-16 17:47:35 +10:00
Andrew Murray
b15ce5a4bc
Do not detect Ultra HDR images as MPO
2024-05-13 21:51:16 +10:00
Andrew Murray
db4714c280
Removed helper.py modes
2024-05-12 21:20:46 +10:00
Hugo van Kemenade
0c8be38878
Merge pull request #7999 from radarhere/accept
...
Added MPEG accept function
2024-05-11 23:02:51 +03:00
Andrew Murray
c6a3f0fdd8
Merge branch 'main' into accept
2024-05-08 18:45:10 +10:00
Andrew Murray
a3356879fd
Use f-string
2024-05-08 17:57:36 +10:00
Andrew Murray
7d81cbd0ed
Do not use percent format
2024-05-07 14:01:27 +10:00
Andrew Murray
b17f1e507b
Use f-strings
2024-05-07 14:01:08 +10:00
Andrew Murray
86fb383739
Corrected big-endian check
2024-04-27 14:08:36 +10:00
Andrew Murray
e932d9e3d7
Merge branch 'main' into lab
2024-04-26 09:08:43 +10:00
Andrew Murray
f7c9327264
Merge branch 'bgr' into bgr-helper
2024-04-26 08:13:38 +10:00
Andrew Murray
f56a2c9b7e
Merge branch 'main' into bgr
2024-04-26 07:11:04 +10:00
Hugo van Kemenade
1138ea5370
Merge pull request #7921 from Yay295/testing
...
Fix ImagingAccess for I;16N on big-endian
2024-04-25 21:36:38 +03:00
Yay295
a4080a7249
clean up comments in test_image_access.py
2024-04-25 08:51:33 -05:00
Hugo van Kemenade
0099de0ed9
Add deprecation helper for Image.new with BGR; modes
2024-04-25 16:00:14 +03:00
Andrew Murray
5faebadd56
BGR;16 does not fail on big-endian
2024-04-24 21:05:59 -05:00
Andrew Murray
49ce63d257
Merge branch 'main' into bgr
2024-04-25 09:13:20 +10:00
Andrew Murray
4af831e70c
Accept '.zlib-ng' suffix to zlib version
2024-04-24 23:45:25 +10:00
Andrew Murray
0df8796e19
Parametrized test
2024-04-22 18:45:41 +10:00
Andrew Murray
c7bb152ed9
support_custom_tags attribute is not present if libtiff is not supported
2024-04-22 18:30:00 +10:00
Andrew Murray
f690b7f691
Added MPEG accept function
2024-04-22 13:39:35 +10:00
Andrew Murray
745eb23a87
Use LAB hopper file if conversion is not supported
2024-04-22 09:23:59 +10:00
Andrew Murray
eee633cb21
Merge pull request #7975 from radarhere/libtiff
...
Corrected check for libtiff feature
2024-04-22 09:00:35 +10:00
Yay295
98510570e6
ignore BGR;15/16 test failure on big-endian
2024-04-20 10:13:38 -05:00
Andrew Murray
5c960d6abc
rename "image_mode_names" to "modes"
2024-04-20 09:03:19 -05:00
Andrew Murray
5573ec7490
use hopper() for test_getdata_putdata()
2024-04-20 09:02:49 -05:00
Yay295
fe79ae5653
get pixel size by counting bytes in 1x1 image
2024-04-20 09:01:46 -05:00
Yay295
5dabc6cf14
fix I;16N lib pack test
2024-04-20 09:01:38 -05:00
Yay295
0fed6a5fbc
use common image mode list for TestImageGetPixel tests
2024-04-20 09:01:38 -05:00
Yay295
5a4b771fb0
move image mode info variables to helper.py
2024-04-20 09:01:38 -05:00
Yay295
139245a3db
use namedtuple for image mode info
2024-04-20 09:01:37 -05:00
Andrew Murray
11ac0c1703
Combine tests through parametrization
2024-04-19 17:15:10 +10:00
Andrew Murray
533f78e0a2
Parametrize test
2024-04-19 07:47:14 +10:00
Andrew Murray
28f436c94d
Use monkeypatch to set READ_LIBTIFF and WRITE_LIBTIFF
2024-04-18 17:57:40 +10:00
Hugo van Kemenade
f8160b858a
Merge pull request #7936 from adamjstewart/types/fromarray
2024-04-17 16:43:57 +03:00
Andrew Murray
d431c97ba3
Deprecate BGR;15, BGR;16 and BGR;24
2024-04-15 19:28:52 +10:00
Andrew Murray
71029803e7
Corrected check for libtiff feature
2024-04-14 21:57:29 +10:00
Andrew Murray
22705d3da5
Merge pull request #7956 from Cirras/obscure-bitmap-headers
...
Add support for reading `BITMAPV2INFOHEADER` and `BITMAPV3INFOHEADER`
2024-04-13 16:25:26 +10:00
Yay295
c1f6abbd37
Fix test error message grammar
2024-04-11 14:07:07 -05:00
Andrew Murray
94fe670c0b
Test DIB header size
2024-04-10 23:18:31 +10:00
Andrew Murray
4b4cdbd40c
Added image to supported list
2024-04-10 20:37:44 +10:00
Jonah Jeleniewski
a1a2202ebe
Add support for bitmaps with header size 56
...
Size 56 is the undocumented `BITMAPV3INFOHEADER`.
It adds the alpha bit mask.
The format is known to be supported by:
- Windows (MS paint, etc.)
- Adobe Photoshop
- Popular web browsers
2024-04-08 22:38:06 +10:00
Jonah Jeleniewski
2f3281dcda
Add support for bitmaps with header size 52
...
Size 52 is the undocumented `BITMAPV2INFOHEADER`.
It adds the RGB bit masks.
The format is known to be supported by:
- Adobe Photoshop
- Popular web browsers
2024-04-08 21:18:19 +10:00
Andrew Murray
84238bd459
Merge branch 'main' into types/fromarray
2024-04-07 08:32:48 +10:00
Yay295
1635e7a571
Update Tests/test_image_getdata.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-04-06 15:18:16 -05:00
Yay295
6a255de24f
Rename test_roundtrip() to test_hopper()
...
This test isn't actually roundtripping anything.
2024-04-06 11:14:38 -05:00
Andrew Murray
2245df0ac3
Only preserve IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED
2024-04-06 20:59:06 +11:00
Andrew Murray
c61a481028
Support reading CMYK JPEG2000 images
2024-04-06 13:40:39 +11:00
Andrew Murray
e85a84baa7
Added SupportsArrayInterface
2024-04-03 20:00:40 +11:00
Hugo van Kemenade
97c6e46f34
Fix lint
2024-04-01 20:49:19 +03:00
pre-commit-ci[bot]
88ddcde8d8
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-04-01 17:24:31 +00:00
Andrew Murray
e4a10051b6
Corrected test
2024-04-01 23:25:27 +11:00
Andrew Murray
aeb51cbb16
Merge branch 'main' into lcms
2024-04-01 19:26:55 +11:00
Andrew Murray
2a93aba5cf
Use strncpy to avoid buffer overflow
2024-04-01 09:24:43 +03:00
pre-commit-ci[bot]
8f3860c29b
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-04-01 06:17:03 +00:00
Andrew Murray
27b10c4bd8
Deprecate eval(), replacing it with lambda_eval() and unsafe_eval()
2024-04-01 09:11:59 +03:00
Hugo van Kemenade
22376775b0
Merge pull request #7912 from hugovk/hopper-lru-cache
2024-04-01 08:53:01 +03:00
Hugo van Kemenade
da13358245
Merge pull request #7883 from radarhere/tiff
...
Raise ValueError if seeking to greater than offset-sized integer in TIFF
2024-04-01 08:46:05 +03:00
Hugo van Kemenade
512ee3ff9b
Simplify code and update comments
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-31 23:13:30 -06:00
Andrew Murray
d97585af5a
Merge pull request #7923 from hugovk/release-notes
...
Add type hints to release notes
2024-04-01 13:47:10 +11:00
Hugo van Kemenade
9f5d6e0c31
Fix type hint
...
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-31 10:02:23 -06:00
Hugo van Kemenade
7b2320b50f
Fix typos
2024-03-31 15:57:20 +03:00
Hugo van Kemenade
ed5cd18d9c
Always return fresh not-yet-loaded image for hopper(None)
2024-03-31 15:07:15 +03:00
Andrew Murray
46b0b0e57d
Merge branch 'main' into types-cms2
2024-03-31 07:22:40 +11:00
Hugo van Kemenade
a6c7a04c00
Merge pull request #7856 from radarhere/docs
...
Corrected exiv2.org links
2024-03-30 22:19:57 +02:00
Andrew Murray
328052730d
Merge branch 'main' into hopper-lru-cache
2024-03-30 20:20:51 +11:00
Hugo van Kemenade
a4e5dc219c
Merge pull request #7818 from nulano/bugreport
2024-03-30 11:13:02 +02:00
Hugo van Kemenade
c5eb7c7c29
Merge pull request #7918 from radarhere/convert
2024-03-30 11:12:05 +02:00
Ondrej Baranovič
6b0a79ce57
sort the parameters
2024-03-30 07:33:27 +00:00
Andrew Murray
1ac1540fe3
Combined test_report.py into test_main.py
2024-03-30 07:33:27 +00:00
Andrew Murray
fb6b860172
Added RGB to I;16, I;16L and I;16B conversion
2024-03-30 11:33:55 +11:00
Hugo van Kemenade
d131f1c513
Clarify comments
2024-03-28 22:13:09 +02:00
Andrew Murray
60976c8dbe
Merge branch 'main' into bytes_tests
2024-03-29 06:31:06 +11:00
Nulano
0015e9ce68
expose ImageCms.core.CmsTransform
2024-03-28 17:26:03 +01:00
Nulano
047a0d2a64
do not allow ImageCms.core.CmsProfile to be instantiated directly
2024-03-28 17:24:50 +01:00
Nulano
a1a687c261
add type hints to ImageCms.get_display_profile
2024-03-28 17:23:54 +01:00
Nulano
24ed5db2d1
check type given to ImageCms.core.profile_tobytes instead of crashing
2024-03-28 17:23:54 +01:00
Hugo van Kemenade
c2904b83b5
Merge pull request #7884 from radarhere/mpo
2024-03-28 18:13:57 +02:00
Hugo van Kemenade
d734c8b702
Merge pull request #7888 from radarhere/convert_rgb
2024-03-28 18:11:12 +02:00
Hugo van Kemenade
6464d5cf91
Merge pull request #7894 from radarhere/fits_gzip
2024-03-28 18:09:55 +02:00
Hugo van Kemenade
504a2e17c8
Use functools.lru_cache for hopper()
2024-03-28 18:04:19 +02:00
Yay295
0d86da54bc
add typing to "ims" in test_image_fromqimage.py
...
Co-authored-by: Ondrej Baranovič <ondreko.tiba@gmail.com>
2024-03-27 14:02:02 -05:00
pre-commit-ci[bot]
26a212126f
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-27 15:57:36 +00:00
Yay295
9c6b30560e
use setup_module() to open images so they aren't opened if skipped
2024-03-27 10:53:07 -05:00
Andrew Murray
6ca8bfb253
Merge pull request #7897 from hugovk/flake8-pyi
...
Type hints: Add PYI (flake8-pyi) to Ruff and fix errors
2024-03-27 19:58:53 +11:00
Andrew Murray
142473c7b4
Support GZIP_1 compression
2024-03-26 21:29:28 +11:00
Andrew Murray
e79d1746f2
Support conversion from RGB to La
2024-03-26 19:57:17 +11:00
Andrew Murray
ab8f465f1a
Use transparency info when converting from RGB to LA
2024-03-26 19:55:22 +11:00
scaramallion
7ca9bddf93
Update Tests/test_file_jpeg2k.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-25 20:13:45 +11:00
pre-commit-ci[bot]
901c13c4b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-03-24 04:47:28 +00:00
scaramallion
ce060a8e8b
Fix 9-bit JPEG 2000 images not using I;16
2024-03-24 15:40:11 +11:00
Hugo van Kemenade
20d8095439
Fix: PYI041 Use float instead of int | float
2024-03-23 20:52:50 +02:00
Hugo van Kemenade
6ed952b510
Fix: PYI024 Use typing.NamedTuple instead of collections.namedtuple
2024-03-23 20:52:50 +02:00
mergify[bot]
759630fbaf
Merge pull request #7891 from radarhere/kmeans
...
Raise ValueError if kmeans is negative
2024-03-22 22:02:42 +00:00
Andrew Murray
47040c7b35
Test positive and zero kmeans
2024-03-22 23:53:07 +11:00
Andrew Murray
3004c46683
Block saving TIFF tag OSUBFILETYPE using libtiff
2024-03-22 23:43:55 +11:00
Andrew Murray
171e497e05
Raise ValueError if kmeans is negative
2024-03-22 17:36:04 +11:00
Hugo van Kemenade
ca973709a0
Merge pull request #7882 from radarhere/ppm
2024-03-21 18:24:54 +02:00
Hugo van Kemenade
9d3c8d54b4
Merge pull request #7870 from radarhere/j2k_pclr
2024-03-21 18:24:45 +02:00
Hugo van Kemenade
3bbc865afc
Merge pull request #7872 from radarhere/webp_alpha_quality
2024-03-21 18:20:40 +02:00
Andrew Murray
9c41bf4641
Only specify image size once
2024-03-21 19:16:06 +11:00
Andrew Murray
a0ab9f488f
Added type hints
2024-03-21 19:12:48 +11:00
Andrew Murray
10ceae924c
Removed unused number of bands
2024-03-21 19:11:35 +11:00
Andrew Murray
c3997050b0
Simplified test using assert_image_equal
2024-03-21 19:11:19 +11:00
Andrew Murray
fd80b2e1d9
Moved sample data inside test
2024-03-21 18:46:09 +11:00
Andrew Murray
8b6a182815
Support conversion from RGB to RGBa
2024-03-21 16:25:40 +11:00
Andrew Murray
75a206bf58
Added conversion from RGB to RGBa and La
2024-03-20 08:57:06 -05:00
Yay295
d30404fede
use dummy var name for unused parts of unpacked tuple
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-20 08:55:05 -05:00
Andrew Murray
a78ed9595f
Determine size from markers, not EXIF data
2024-03-16 18:40:16 +11:00
Andrew Murray
21801f3a45
Raise ValueError if seeking to greater than offset-sized integer
2024-03-16 13:33:04 +11:00
Andrew Murray
3ba8eb3b7e
Raise a ValueError for negative values when loading P1-P3 PPM images
2024-03-16 12:29:21 +11:00
Andrew Murray
d2453250f1
Fixed joined corners for rounded_rectangle() non-integer dimensions
2024-03-15 23:58:07 +11:00
Andrew Murray
64c8c27271
Added alpha_quality argument when saving
2024-03-13 18:55:29 +11:00
Andrew Murray
f128d47e15
Added reading of JPEG2000 palettes
2024-03-12 19:30:23 +11:00
Andrew Murray
54d329b192
Merge branch 'main' into import
2024-03-12 12:01:50 +11:00
Yay295
680f387bc2
enable bgr modes for image bytes tests
2024-03-11 12:07:34 -05:00
Yay295
12d626a6bb
add typing to image bytes tests
2024-03-11 12:00:13 -05:00
Yay295
79c9b2b261
autosize TestImageBytes.sample_bytes
2024-03-11 11:37:48 -05:00
Yay295
43f3c822a7
use tuple of tuples for image mode info
2024-03-11 11:37:48 -05:00
Yay295
a626ff0e60
add tests using the bytes Image class methods
2024-03-11 11:37:45 -05:00
Yay295
87ed513f91
support "RGBa" and "La" in hopper() test helper
2024-03-11 11:30:59 -05:00
Hugo van Kemenade
9ad22fc96a
Merge pull request #7753 from radarhere/eps
2024-03-11 17:51:29 +02:00
Hugo van Kemenade
94f319cd35
Merge pull request #7706 from radarhere/psd
2024-03-11 17:51:06 +02:00
Hugo van Kemenade
93bf9912e2
Merge pull request #7788 from radarhere/gif_disposal
2024-03-11 17:48:13 +02:00
Hugo van Kemenade
1b6e68eaae
Merge pull request #7823 from radarhere/png_iccp
2024-03-11 17:42:22 +02:00
Hugo van Kemenade
4e92ee0818
Merge pull request #7840 from radarhere/write_undefined
2024-03-11 17:41:13 +02:00
Hugo van Kemenade
89d8be5b94
Merge pull request #7821 from radarhere/apng
2024-03-11 17:38:48 +02:00
Hugo van Kemenade
3cdd49f31f
Merge pull request #7801 from radarhere/codecs
2024-03-11 17:38:12 +02:00
Hugo van Kemenade
d8c8075061
Merge pull request #7797 from radarhere/tga_palette
2024-03-11 17:37:20 +02:00
Hugo van Kemenade
f543b034bd
Merge pull request #7798 from radarhere/ico
2024-03-11 17:36:31 +02:00
Hugo van Kemenade
e09366307c
Merge pull request #7748 from radarhere/test_font_leaks
2024-03-11 17:35:26 +02:00
Nulano
a619a8de2f
add PIL.report
2024-03-09 15:00:45 +01:00
Nulano
e5a46ef45d
add test for --report argument and features.pilinfo(supported_formats)
2024-03-09 14:58:05 +01:00
Andrew Murray
bc00c26edd
Corrected links
2024-03-04 22:48:51 +11:00
Andrew Murray
91eb69c6b2
Fixed typo
2024-03-04 06:37:56 +11:00
Andrew Murray
b7f39076a1
Merge pull request #7846 from radarhere/type_hints
...
Added type hints to additional tests
2024-03-03 21:33:08 +11:00
Andrew Murray
01fdf2ff51
Merge branch 'main' into bugreport
2024-03-02 17:04:41 +11:00
Andrew Murray
d6a3f89e27
Open 16-bit grayscale PNGs as I;16
2024-03-02 15:39:43 +11:00
Andrew Murray
6d78d42769
Added type hints
2024-03-02 13:12:17 +11:00
Yay295
c4234800a0
parametrize test_seek_mode functions
2024-03-01 08:47:50 -06:00
Andrew Murray
a20abff5e4
Merge pull request #7709 from lajiyuan/main
...
Handle truncated chunks at the end of PNG images
2024-03-01 22:25:28 +11:00
Hugo van Kemenade
1b25019a27
Merge pull request #7779 from radarhere/gif
...
Match mask size to pasted image size in GifImagePlugin
2024-03-01 12:14:05 +02:00
Andrew Murray
b80b30d2fd
Merge branch 'main' into png_iccp
2024-02-29 22:58:15 +11:00
Andrew Murray
904b8e549c
Allow writing IFDRational to UNDEFINED tag
2024-02-28 21:07:15 +11:00
Yay295
e6785576b1
add typing to test_p_from_rgb_rgba()
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-26 08:47:30 -06:00
Yay295
fe85947f16
use single string for parameter names instead of tuple of strings
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-26 07:47:13 -06:00
Yay295
ece34104cb
parametrize test_p_from_rgb_rgba()
2024-02-26 01:02:25 -06:00
Hugo van Kemenade
e08e1f8340
Merge pull request #7804 from twolife/fix_flc
2024-02-22 11:05:15 +02:00
Andrew Murray
383ac4fca0
Fixed reading PNG iCCP compression method
2024-02-22 19:50:36 +11:00
Sébastien Noel
e45477e507
fix FLI/FLC decoder for files with a prefix chunk
2024-02-22 09:13:48 +01:00
Andrew Murray
c322a2f633
Use maximum frame size in IHDR chunk when saving
2024-02-21 19:39:29 +11:00
Andrew Murray
7200f47d31
Renamed argument
2024-02-21 08:11:01 +11:00
Nulano
ab9dfd8181
Add sys.{executable,base_prefix,prefix} to features.pilinfo
2024-02-20 21:38:04 +01:00
Andrew Murray
a655d7606e
Simplified type hints
2024-02-20 21:27:30 +11:00
Andrew Murray
e39765d755
Added type hints
2024-02-20 15:41:20 +11:00
Andrew Murray
4ea1ad03c3
Merge branch 'main' into unused
2024-02-17 18:23:04 +11:00
Andrew Murray
5ff7d926fd
Added type hints
2024-02-17 15:00:38 +11:00
Andrew Murray
1a108281b9
Removed unused code
2024-02-17 14:04:00 +11:00
Andrew Murray
3199c0ea40
Decoder and encoders subclass PyDecoder and PyEncoder
2024-02-15 20:24:08 +11:00
Andrew Murray
21e5d5d082
Use palette when loading
2024-02-14 09:17:22 +11:00
Andrew Murray
818500b329
Raise an error if map depth is unknown
2024-02-14 07:10:44 +11:00
Andrew Murray
63987b7aba
Set mode to L if palette is missing
2024-02-14 06:55:13 +11:00
Andrew Murray
50e9a92c98
Merge pull request #7794 from radarhere/type_hints
...
Added type hints to additional tests
2024-02-13 22:22:24 +11:00
Andrew Murray
3374e91d5e
Merge pull request #7750 from hugovk/type-hints-replace-io.BytesIO
...
Replace `io.BytesIO` in type hints
2024-02-13 21:29:52 +11:00
Andrew Murray
4ce06aac3b
Added type hints
2024-02-12 23:01:44 +11:00
Andrew Murray
ea0240bf2d
Use is None
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-12 19:12:08 +11:00
Andrew Murray
3f6422b512
Added type hints
2024-02-12 09:28:53 +11:00
Andrew Murray
29dd02509d
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-11 22:02:55 +11:00
Andrew Murray
430f50606e
Current delta is determined by previous disposal
2024-02-10 21:33:32 +11:00
Andrew Murray
e6a521130e
If previous disposal was 2, do not fill identical pixels
2024-02-09 19:47:09 +11:00
Andrew Murray
463c368211
Simplified code
...
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-02-07 21:02:34 +11:00
Andrew Murray
159fc068ca
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-02-07 20:50:36 +11:00
Andrew Murray
cdc498e6f3
Added type hints
2024-02-07 19:16:28 +11:00
Andrew Murray
91645f9eff
Lint fix
2024-02-07 10:19:00 +11:00
Hugo van Kemenade
811dd15ca5
Merge pull request #7769 from radarhere/type_hints
2024-02-06 23:12:26 +02:00
Andrew Murray
65cb0b0487
Added _typing.Coords
2024-02-06 07:49:43 +11:00
pre-commit-ci[bot]
27b0cf67e7
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
Andrew Murray
5a8e7dda79
Added type hints
2024-02-05 20:36:34 +11:00
Andrew Murray
95255536cf
Merge branch 'main' into type_hints
2024-02-05 19:29:27 +11:00
Andrew Murray
dfb48ff297
Match mask size to pasted image size
2024-02-05 19:16:15 +11:00
Andrew Murray
d8f52f58be
Merge branch 'main' into main
2024-02-05 08:56:25 +11:00
Andrew Murray
2515938cdd
Simplified type hints
2024-02-02 19:04:22 +11:00
Andrew Murray
58554de0c8
Merge branch 'main' into main
2024-02-01 00:06:05 +11:00
FangFuxin
b8769d1cf5
Update Tests/test_file_png.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-31 21:02:50 +08:00
Andrew Murray
530512f699
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-01-31 22:58:53 +11:00
Andrew Murray
bb1fece57a
Added type hints
2024-01-31 21:55:32 +11:00
Andrew Murray
2888f767f2
Merge branch 'main' into psd
2024-01-31 20:16:24 +11:00
Hugo van Kemenade
4a4b90c365
Autotype tests ( #7756 )
...
* autotyping: --none-return
* autotyping: --scalar-return
* autotyping: --int-param
* autotyping: --float-param
* autotyping: --str-param
* autotyping: --annotate-named-param tmp_path:pathlib.Path
2024-01-31 20:12:58 +11:00
Andrew Murray
5efa2ade22
Added test
2024-01-31 19:10:33 +11:00
Hugo van Kemenade
76955bbaf7
Remove shebang and execute bit
2024-01-29 18:43:51 +02:00
Hugo van Kemenade
0669532898
Remove shebangs
2024-01-29 18:43:03 +02:00
Hugo van Kemenade
d49d2d14a0
Merge branch 'main' into type-hints-replace-io.BytesIO
2024-01-28 11:22:00 +02:00
Hugo van Kemenade
61d47c3dfa
More support for arbitrary os.PathLike
2024-01-27 14:06:06 +02:00
Andrew Murray
737314923f
Added type hints
2024-01-27 15:19:43 +11:00
Hugo van Kemenade
16d4068b42
Test os.PathLike that's not pathlib.Path
2024-01-26 19:17:44 +02:00
Hugo van Kemenade
f613a9213f
Parameterise test
2024-01-26 19:17:44 +02:00
Andrew Murray
ddb7df0ec6
Added type hints
2024-01-25 22:18:46 +11:00
Andrew Murray
5721577e4e
Stop reading EPS at EOF marker
2024-01-25 20:20:53 +11:00
Andrew Murray
4175787c45
Merge pull request #7739 from radarhere/test_image_results
...
Do not support using test-image-results to upload images after test failures
2024-01-25 06:36:49 +11:00
Andrew Murray
5709ffe5da
Merge branch 'main' into test_font_leaks
2024-01-25 06:15:13 +11:00
Andrew Murray
e2d1b2663d
Restored original state using finally
...
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-01-24 08:12:06 +11:00
Andrew Murray
4814bee6c0
Use Path instead of PosixPath
2024-01-23 21:42:36 +11:00
Andrew Murray
8caae8739f
Restored testing of non-TrueType default font
2024-01-23 18:51:41 +11:00
Andrew Murray
16fd934b00
Use TypedDict
2024-01-23 09:55:25 +11:00
Andrew Murray
2521ec4732
Restored charsets dictionary
2024-01-22 22:08:45 +11:00
Andrew Murray
a09e056a4c
Added type hints
2024-01-22 18:42:43 +11:00
Andrew Murray
d331eb9c52
Added type hints
2024-01-21 19:18:51 +11:00
Andrew Murray
4674195321
Removed support for test-image-results
2024-01-21 15:01:12 +11:00
Andrew Murray
3453a99908
Merge branch 'main' into type_hints_check
2024-01-21 14:38:17 +11:00
Andrew Murray
1891b61f73
Merge pull request #7736 from hugovk/isort-tests
...
Sort imports in `Tests/`
2024-01-21 14:30:42 +11:00
Hugo van Kemenade
53c3cd9f8e
isort Tests
2024-01-20 13:23:03 +02:00