Commit Graph

289 Commits

Author SHA1 Message Date
Andrew Murray
88b3265a9c Lint: Run PT016 2024-09-14 20:59:02 +10:00
Andrew Murray
e0845f06d8 Deprecate isImageType 2024-09-10 16:20:52 +10:00
Andrew Murray
23c461e431 Handle duplicate exif header
Co-authored-by: Jamil Zakirov <djamilzak@gmail.com>
2024-09-06 11:56:06 +10:00
Hugo van Kemenade
e2c13571c3
Merge pull request #8230 from radarhere/exif_get_ifd 2024-09-04 14:46:18 +03:00
Andrew Murray
eae107ceb2
Merge branch 'main' into type_hint_init 2024-08-28 08:31:09 +10:00
Andrew Murray
e3ffa380ab
Merge branch 'main' into exif_get_ifd 2024-08-25 00:05:02 +10:00
Andrew Murray
4721c31b19
Merge pull request #8319 from radarhere/type_hint
Added type hints
2024-08-24 23:54:19 +10:00
Andrew Murray
fed9168252 Catch defusedxml warnings 2024-08-23 18:48:28 +10:00
Andrew Murray
2ed8502d12 Use ipython PrettyPrinter, rather than custom class 2024-08-20 22:13:52 +10:00
Aleksandr Karpinskii
a3468996c0 Remove webp animations flags and conditions
Removed:
_webp.WebPDecode
_webp.HAVE_WEBPANIM
features.webp_anim
2024-08-13 09:33:20 +04:00
Andrew Murray
4d0e8e74b4 Use im property 2024-08-10 10:20:08 +10:00
Andrew Murray
8f1157a61d Added type hints to Image.__init__() 2024-08-02 23:30:27 +10:00
Andrew Murray
accfaf1c09 Added type hints 2024-07-30 20:20:09 +10:00
Andrew Murray
42bfcaa2d4 When IFD is missing, connect get_ifd() dictionary to Exif 2024-07-13 12:46:15 +10:00
Andrew Murray
486dac7efc Added type hints 2024-07-06 19:17:23 +10:00
Andrew Murray
4aa24f88d9
Added type hints to tests (#8203)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2024-07-05 11:56:24 -06:00
Andrew Murray
267c0b37b1 Added type hints 2024-07-02 20:10:47 +10:00
Hugo van Kemenade
3fdaecb025
Merge pull request #8063 from radarhere/possible_formats 2024-06-28 00:18:10 -06:00
Andrew Murray
fd3f6c1a92 Remove zero-byte end padding when parsing any XMP data 2024-06-26 19:31:40 +10:00
Andrew Murray
42381aa1e6 Added type hints 2024-06-24 06:59:00 +10:00
Andrew Murray
cc83cc8ec8 Updated type hints 2024-06-22 10:09:11 +10:00
Andrew Murray
7ab3aee7bc
Merge branch 'main' into xmp 2024-06-19 09:06:10 +10:00
Andrew Murray
291ee35204 Added type hints 2024-06-18 23:03:03 +10:00
Andrew Murray
eba2694498
Merge branch 'main' into xmp 2024-06-05 15:53:46 +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
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
db4714c280 Removed helper.py modes 2024-05-12 21:20:46 +10:00
Andrew Murray
86fb383739 Corrected big-endian check 2024-04-27 14:08:36 +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
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
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
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
d431c97ba3 Deprecate BGR;15, BGR;16 and BGR;24 2024-04-15 19:28:52 +10: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
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
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