Commit Graph

4797 Commits

Author SHA1 Message Date
Andrew Murray
e5c4d56a9e Clarify error message when size is missing 2024-06-24 15:08:36 +10:00
Andrew Murray
2f85bf178b Merge branch 'main' into load_default_imagefont 2024-06-24 08:04:53 +10:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Hugo van Kemenade
920698eea7
Merge pull request #8153 from radarhere/type_hint 2024-06-23 07:29:11 -06:00
Hugo van Kemenade
6879956d17
Merge pull request #8156 from radarhere/type_hint_imagefilter 2024-06-23 07:27:45 -06:00
Hugo van Kemenade
9c7ba240e9
Merge pull request #7966 from radarhere/palette
Support unpacking more rawmodes to RGBA palettes
2024-06-23 01:43:41 -06:00
Hugo van Kemenade
0201707737
Merge pull request #8159 from radarhere/qt6
Removed support for Qt 5
2024-06-22 22:14:27 -06:00
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