Commit Graph

4700 Commits

Author SHA1 Message Date
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
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
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