Commit Graph

3690 Commits

Author SHA1 Message Date
Andrew Murray
e90bb1559c Rearranged code 2025-10-20 21:00:29 +11:00
Andrew Murray
4b90888a7d Added type hints 2025-10-20 19:38:29 +11:00
Andrew Murray
e969fa7aea Correct __getitem__ return type 2025-10-17 06:14:02 +11:00
Yan-Ke Guo
424168b69c
Merge branch 'main' into main 2025-10-16 09:46:04 +08:00
Hugo van Kemenade
3620d48459 12.1.0.dev0 version bump 2025-10-15 21:28:16 +03:00
Hugo van Kemenade
693df7b42c 12.0.0 version bump 2025-10-15 20:06:44 +03:00
Andrew Murray
c680ff029f
Merge branch 'main' into main 2025-10-15 22:31:20 +11:00
Andrew Murray
e533ccccfc Merge branch 'main' into imagetext 2025-10-15 19:38:38 +11:00
Andrew Murray
95a85dc669 Use snake case 2025-10-15 19:38:30 +11:00
Andrew Murray
4889863139 Renamed ImageText class to Text 2025-10-15 19:38:25 +11:00
Hugo van Kemenade
5ee57e4c83
Support saving variable length rational TIFF tags by default (#9241) 2025-10-15 11:06:57 +03:00
Andrew Murray
e36bf768c5 Added four private SGI tags 2025-10-12 15:58:22 +11:00
Andrew Murray
c874256132 Support saving variable length rational TIFF tags by default 2025-10-12 07:08:52 +11:00
Hugo van Kemenade
9fd4af55f7
Remove Pillow version from PDF comment (#9176) 2025-10-10 16:54:06 +03:00
Hugo van Kemenade
396755ed1b
Test largest CUR cursor (#9191) 2025-10-10 12:58:15 +03:00
Hugo van Kemenade
274a65b5d0
Do not unnecessarily update FLI __offset (#9184) 2025-10-10 12:56:14 +03:00
Hugo van Kemenade
8c42abd946
Allow RGBA palettes to work with ImageOps.expand() (#9138) 2025-10-10 12:48:12 +03:00
Hugo van Kemenade
c22e7af885
Fixed loading rotated PCD images (#9177) 2025-10-10 12:45:28 +03:00
Hugo van Kemenade
6b4bb79b44
Use _ensure_mutable() (#9200) 2025-10-08 19:22:04 +03:00
Hugo van Kemenade
797d83f818
Seek past BeginBinary data when parsing EPS metadata (#9211) 2025-10-08 19:20:58 +03:00
Andrew Murray
6d19b8adef Do not allow negative offset with memory mapping 2025-10-08 17:08:39 +11:00
Hugo van Kemenade
c807f6508b
Clear C image when MPO frame image size changes (#9208) 2025-10-05 11:53:06 +03:00
Andrew Murray
762bdce34f
Merge branch 'main' into rgba_pa 2025-10-04 18:58:00 +10:00
Hugo van Kemenade
3ced6ca78f
Load image palette into Python after converting to PA (#9152) 2025-10-04 11:02:35 +03:00
Hugo van Kemenade
a2e2939240
Check all reserved bytes in FLI header (#9183) 2025-10-04 11:02:10 +03:00
Hugo van Kemenade
5a5c51c7a2
Limit length of read operation in ImageFont._load_pilfont_data() (#9181) 2025-10-04 11:01:36 +03:00
Andrew Murray
e2a8e217da Removed _expand() 2025-09-29 23:18:47 +10:00
Andrew Murray
9ba1029d51 Clear C image when MPO frame image size changes 2025-09-21 07:44:47 +10:00
Andrew Murray
222933df54 Seek past BeginBinary data when parsing metadata 2025-09-21 07:44:31 +10:00
Andrew Murray
610d564aea
Merge branch 'main' into main 2025-09-16 19:43:34 +10:00
Andrew Murray
3a580e0f79 Use _ensure_mutable 2025-09-09 21:04:16 +10:00
Andrew Murray
bf18e5fe8b Assert fp is not None 2025-09-05 20:10:27 +10:00
Andrew Murray
a529797857 Assert fp is not None 2025-09-05 20:04:50 +10:00
Andrew Murray
476b122ae4 Simplified code 2025-09-05 20:00:04 +10:00
Hugo van Kemenade
ba04d58851
Only deprecate fromarray mode for changing data types (#9063) 2025-09-04 16:43:21 +03:00
Hugo van Kemenade
bd63c4fdba
Deprecate Image._show (#9186) 2025-09-04 13:57:15 +03:00
Hugo van Kemenade
ae65315e78
Fix reading RGB and CMYK IPTC images (#9088) 2025-09-04 13:41:03 +03:00
Andrew Murray
e0da1a62ec Use walrus operator 2025-09-04 08:10:31 +10:00
Andrew Murray
877707379b Deprecate Image._show 2025-09-03 22:38:37 +10:00
Andrew Murray
e73b5ff4cd Do not unnecessarily update __offset 2025-09-03 19:35:01 +10:00
Andrew Murray
72c067af29 Check all reserved bytes in header 2025-09-03 19:23:26 +10:00
Andrew Murray
caacd38e1b Raise mode error before reading 2025-09-02 21:32:13 +10:00
Andrew Murray
485d9884cf Limit length of read operation 2025-09-02 21:24:57 +10:00
Andrew Murray
57a5f76e6d Removed unused split 2025-09-02 21:09:07 +10:00
Andrew Murray
1c70e716ce
Merge branch 'main' into fromarray_mode 2025-09-01 08:30:22 +10:00
Andrew Murray
c7a268e5a5
ImageMorph operations must have length 1 (#9102) 2025-09-01 08:23:30 +10:00
Andrew Murray
c6915f717f rotate() will use "angle % 360" 2025-08-29 07:43:51 +10:00
Andrew Murray
05a6010311 Fixed loading rotated PCD images 2025-08-29 07:35:18 +10:00
Hugo van Kemenade
35f23fb78c
Set correct size for rotated PCD images after opening (#9086) 2025-08-27 17:59:10 +03:00
Hugo van Kemenade
801f7adb3c
Simplify check for GBR width and height (#9089) 2025-08-27 17:58:03 +03:00
Hugo van Kemenade
146d03c250
Fix ZeroDivisionError in ImageStat (#9105) 2025-08-27 17:45:55 +03:00
Hugo van Kemenade
a74e4fa9a5
When deleting EXIF IFD tag, delete IFD data (#9083) 2025-08-27 17:43:19 +03:00
Hugo van Kemenade
9a2c5160f2
Allow alpha_composite to use LA images (#9066) 2025-08-27 17:42:50 +03:00
Andrew Murray
0d72707d4f Removed version from PDF comment 2025-08-26 08:55:11 +10:00
Andrew Murray
009444f9c5 Improved _accept length check 2025-08-21 21:56:03 +10:00
Andrew Murray
6a3bde05a4 Do not set core to DeferredError 2025-08-20 15:32:12 +10:00
Andrew Murray
c826b932c0 Document MAXBLOCK 2025-08-19 15:45:42 +10:00
Andrew Murray
62546924b5 Remove support for FreeType <= 2.9.0 2025-08-18 08:07:12 +10:00
Andrew Murray
ba66fec3d2 When converting RGBA to PA, use RGB to P quantization 2025-08-15 23:39:33 +10:00
Andrew Murray
6d974b61d6 Load image palette into Python after converting to PA 2025-08-15 14:37:31 +10:00
Andrew Murray
35c92308ad Allow RGBA palettes to work with expand() 2025-08-06 11:41:26 +10:00
Andrew Murray
b07dbc167c Fixed typo 2025-08-06 08:17:09 +10:00
Andrew Murray
fcdeb6404e Merge branch 'main' into imagetext 2025-08-02 22:18:51 +10:00
Andrew Murray
94a32628f3 Merge branch 'main' into fromarray_mode 2025-08-02 22:15:13 +10:00
Hugo van Kemenade
2ab301dcc9
Drop support for Python 3.9 (#9119)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-08-02 12:02:20 +00:00
Hugo van Kemenade
eb59176b09
Move imports into TYPE_CHECKING (#9123) 2025-08-02 13:56:00 +03:00
Andrew Murray
ae6bb29b82 Removed support for NumPy 1.20 when type checking 2025-08-02 18:35:16 +10:00
Andrew Murray
27a7582b35 Moved imports into TYPE_CHECKING 2025-08-02 11:40:35 +10:00
Andrew Murray
e8b3c17ebc Updated documentation 2025-07-29 07:28:03 +10:00
Luke Granger-Brown
ec6d5efe4d
Deprecate ImageCmsProfile product_name and product_info (#8995)
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2025-07-26 17:33:11 +10:00
Andrew Murray
969e468749 Allow ImageDraw text() to use ImageText 2025-07-24 19:34:30 +10:00
Andrew Murray
24681a3927 Added ImageText 2025-07-24 19:34:29 +10:00
Andrew Murray
103a5a0b59 Fixed ZeroDivisionError 2025-07-24 19:33:15 +10:00
Andrew Murray
79914ec8a5 Check for scaling in macOS windows 2025-07-13 15:11:23 +08:00
Yan-Ke Guo
1f7e9c3b51 Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2025-07-13 15:11:23 +08:00
GUO YANKE
5ce88dbe53 feat(ImageGrab): enhance grab function to support window-based screenshot capturing on macOS 2025-07-13 15:11:23 +08:00
Andrew Murray
6fdbf54331 Width and height are unsigned 2025-07-12 19:50:19 +10:00
Andrew Murray
cfa51ad4ad Populate single band 2025-07-12 15:09:07 +10:00
Andrew Murray
68ac3375c6 Codec is always "iptc" 2025-07-12 12:47:54 +10:00
Andrew Murray
bc2519abf1 Removed helper method _i8, unused since dump() was removed 2025-07-12 12:34:33 +10:00
Andrew Murray
7328cf2e5e Reduced number of bytes read 2025-07-11 17:19:56 +10:00
Andrew Murray
561ae3760c Set correct size for rotated images after opening 2025-07-11 17:18:47 +10:00
Andrew Murray
74e36e0ee5 Added RGBX and CMYK as alternatives for RGBA array data 2025-07-11 16:48:46 +10:00
Andrew Murray
50dde1c125 Remove unused _save_cjpeg 2025-07-10 23:19:16 +10:00
Andrew Murray
8b695cc0d3 When deleting EXIF IFD tag, clear IFD data 2025-07-10 22:50:05 +10:00
Hugo van Kemenade
329d6a6a62
Remove reference to libtiff 3.x (#9072) 2025-07-08 20:01:35 +03:00
Andrew Murray
cbd47d8609 Removed handling of deprecated WebP features 2025-07-08 23:07:07 +10:00
Andrew Murray
99737228c5 Only deprecate fromarray mode for changing data types 2025-07-08 06:53:22 +10:00
Andrew Murray
7ec13fedc7
Merge branch 'main' into alpha_composite 2025-07-08 06:50:44 +10:00
Andrew Murray
4cfef00574 Added "Colors" to concepts 2025-07-08 06:37:03 +10:00
Andrew Murray
3152da4735 Allow alpha_composite to use LA images 2025-07-05 13:51:18 +10:00
Andrew Murray
0e3aac1ed1 Updated deprecation timeline 2025-07-02 00:00:21 +10:00
Andrew Murray
92bafe6b88 Removed support for FreeType <= 2.9.0 2025-07-02 00:00:21 +10:00
Andrew Murray
aaf217cea0 Removed ICNS (width, height, scale) sizes 2025-07-02 00:00:21 +10:00
Andrew Murray
9fbc255ce5 Removed non-image modes in ImageCms 2025-07-02 00:00:21 +10:00
Andrew Murray
b4bc43fed2 Removed ImageCms constants and versions() 2025-07-02 00:00:21 +10:00
Andrew Murray
4301c1fde6 Removed ImageMath eval and options parameters 2025-07-02 00:00:21 +10:00
Andrew Murray
0a29d6392a Removed IptcImageFile helper functions 2025-07-02 00:00:21 +10:00
Andrew Murray
9c9449af34 Removed support for LibTIFF < 4 2025-07-02 00:00:16 +10:00
Andrew Murray
a7e00fba8b Removed ImageDraw.getdraw hints parameter 2025-07-01 23:57:50 +10:00