Commit Graph

990 Commits

Author SHA1 Message Date
Andrew Murray
bb01312ba9 Improved formatting 2020-06-11 22:42:13 +10:00
Andrew Murray
2d284aea12 Allow writing of UNDEFINED tags 2020-06-10 16:09:22 +10:00
Andrew Murray
7ecb5aaf7e BYTE tags of variable length are only single strings 2020-06-10 16:09:22 +10:00
Hugo van Kemenade
794e9f0f0e
Merge pull request #4637 from radarhere/v2
Use ImageFileDirectory_v2 in Image.Exif
2020-06-10 06:55:15 +03:00
Andrew Murray
ebd6901c95
Merge pull request #4673 from hugovk/yesqa
Remove redundant noqa
2020-06-08 21:02:15 +10:00
Andrew Murray
0cc2e696cb Corrected reading EXIF metadata without prefix 2020-06-07 20:01:04 +10:00
Hugo
c8e3757e72 Run yesqa to remove redundant noqa 2020-06-06 14:54:58 +03:00
Andrew Murray
e228cfcec7 Lint fixes 2020-06-06 12:08:37 +10:00
Hugo van Kemenade
52c66bbcfb
Merge pull request #4580 from radarhere/curve
Fixed drawing a jointed line with a sequence of numeric values
2020-06-04 12:03:25 +03:00
Hugo van Kemenade
4363507d16
Merge pull request #4608 from radarhere/numpy 2020-06-03 18:43:47 +03:00
Andrew Murray
ccac9e1a3a Changed to ImageFileDirectory_v2 2020-06-03 22:11:51 +10:00
nulano
9fbd35fe87 use mode for getsize 2020-06-01 22:18:38 +02:00
Hugo van Kemenade
02d55b79c1
Merge pull request #4560 from radarhere/xmp 2020-06-01 10:49:00 +03:00
Hugo van Kemenade
b8bc307691
Merge pull request #4604 from radarhere/imagegrab
Updated ImageGrab documentation now that Linux is supported
2020-05-31 23:20:51 +03:00
nulano
d2e23e386b
simplify code
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-05-28 12:07:53 +01:00
nulano
66954ad176 deprecate Image.show(command="...") 2020-05-25 18:57:02 +02:00
Hugo van Kemenade
f4fb9c5403
Merge pull request #4625 from radarhere/thumbnail 2020-05-25 17:08:25 +03:00
Hugo van Kemenade
124c06dcc1
Merge pull request #4550 from radarhere/logging 2020-05-25 16:55:35 +03:00
Andrew Murray
ac11fa7d1a
Merge pull request #4620 from ElinksFr/fix-gbr-image-loading
Fix repeatedly loading .gbr
2020-05-17 11:34:58 +10:00
Andrew Murray
75791835b3 Updated code to match other plugins 2020-05-17 11:08:05 +10:00
Andrew Murray
fdc5993ace Improved grammar [ci skip] 2020-05-16 21:37:33 +10:00
Andrew Murray
aa1761bc9f Replace tiff_jpeg with jpeg compression when saving 2020-05-15 22:37:13 +10:00
Andrew Murray
b3604167ad Change STRIPBYTECOUNTS to LONG if necessary when saving 2020-05-15 20:47:57 +10:00
Andrew Murray
b8ec793898 Fixed ZeroDivisionError in thumbnail 2020-05-15 18:29:52 +10:00
Andrew Murray
e84b36860c
Merge pull request #4599 from d0sboots/imagechops
Fix ImageChops documentation
2020-05-12 22:44:16 +10:00
David Walker
f0871b70e7
Update src/PIL/ImageChops.py
Apply wording suggestions about ImageChops.multiply

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-05-12 00:11:42 -07:00
Simon Andrieux
15ae39674e fix reading from empty buffer when loading .gbr 2020-05-11 17:38:42 +02:00
nulano
1656edaf41 fix docs compliance for CF_HDROP 2020-05-09 10:44:19 +02:00
nulano
5728662c7f add support for CF_DIBV5, CF_HDROP, and 'PNG' in ImageGrab.grabclipboard() on win32 2020-05-09 09:40:58 +02:00
Alexander
f15e4a8e06 truncate icclist instead of changing to None 2020-05-08 19:48:20 +03:00
Andrew Murray
59957fb8d8 Added support for 1-D NumPy arrays 2020-05-04 20:07:23 +10:00
Andrew Murray
6669ffd053 Updated documentation now that Linux is supported 2020-05-03 13:06:25 +10:00
Andrew Murray
d5c3814691 Changed default offset for Exif 2020-05-01 19:43:37 +10:00
David Walker
cc39dbab0e Fix ImageChops documentation.
Many methods were incorrectly documented as requriring mode "1". The remaining
ones require *both* images to be mode "1".

Documentation only, [ci skip]
2020-04-30 23:25:45 -07:00
Andrew Murray
f5e9252b12 Fixed drawing a jointed line with a sequence of numeric values 2020-04-24 18:48:10 +10:00
Andrew Murray
b65e72b2fc Updated example code to new-style class [ci skip] 2020-04-23 20:05:30 +10:00
Hugo
d21e45536a Link to Filters concept from methods' parameters [CI skip] 2020-04-23 11:18:24 +03:00
Hugo van Kemenade
f83f19788b
Merge pull request #4552 from radarhere/animation
Simplified animation code
2020-04-17 19:30:04 +03:00
Andrew Murray
9956a6c777 Fixed bug when unpickling TIFF images 2020-04-17 22:13:14 +10:00
Andrew Murray
574b0ee315 Removed initial seek 2020-04-17 22:05:38 +10:00
Andrew Murray
03b5ffbd23 Use common _seek_check method 2020-04-17 22:05:25 +10:00
Andrew Murray
0b33a87b0d Replaced property methods for n_frames and is_animated with normal properties 2020-04-17 22:00:21 +10:00
Hugo van Kemenade
529e113505
Merge pull request #4561 from hugovk/fix-webp-pickle
Fix pickling WebP
2020-04-17 14:48:50 +03:00
Andrew Murray
986c55ff64 Initialise __loaded = 0, removed initialisation of __physical_frame 2020-04-17 19:15:05 +10:00
Andrew Murray
fe8225732a Throw image loading error faster 2020-04-17 18:29:45 +10:00
Hugo
94751da23e Initialise __physical_frame = 0 and add pickle roundtrip tell test 2020-04-17 11:21:57 +03:00
Hugo van Kemenade
f589f8689f
Initialise __logical_frame = 0 so tell() == 0 when unpickled
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-04-17 11:20:38 +03:00
Andrew Murray
f21816918e Allow ImageMagick zTXt chunks to be extracted after copy() 2020-04-16 21:14:19 +10:00
Andrew Murray
1e63f772f8 Parse orientation from XMP tags 2020-04-16 21:05:34 +10:00
Hugo
2e6ab7c669 Fix pickling webp 2020-04-16 11:46:34 +03:00
Andrew Murray
13dcab0fb7 Replaced DEBUG with logging 2020-04-13 07:16:46 +10:00
Andrew Murray
f17f1bc607 Added method argument to single frame WebP saving 2020-04-11 20:43:49 +10:00
Andrew Murray
7bb51a4aca Raise DeprecationWarning on raise_ioerror 2020-04-10 12:57:29 +03:00
Hugo
dda6145fce Since Python 3.3 IOError and WindowsError have been merged into OSError 2020-04-10 12:57:29 +03:00
Andrew Murray
c414810d12 Replaced property methods for n_frames and is_animated with normal properties 2020-04-05 15:23:18 +10:00
Hugo
2e9030ddca Initialise __frame = 0 in open, and test tell 2020-04-02 08:49:26 +03:00
Hugo
0a757b7085 Initialise __frame = 0 2020-04-01 22:17:39 +03:00
Hugo
0a77f73ef3 7.2.0.dev0 version bump 2020-04-01 18:55:23 +03:00
Hugo
f0fe60ae9f 7.1.0 version bump 2020-04-01 13:12:46 +03:00
Hugo van Kemenade
f27873a888
Merge pull request #4243 from pmrowla/apng
Add APNG support
2020-04-01 00:23:57 +03:00
Hugo van Kemenade
b5cf165f9e
Merge pull request #4260 from nulano/imagegrab_xcb
ImageGrab.grab() for Linux with XCB
2020-03-31 23:03:21 +03:00
Hugo van Kemenade
16e1d6a048
Merge pull request #4494 from hugovk/re-add-PILLOW_VERSION
Re-add deprecated PILLOW_VERSION to give projects more time to upgrade
2020-03-31 22:58:23 +03:00
Hugo van Kemenade
761edafed8
Merge branch 'master' into re-add-PILLOW_VERSION 2020-03-31 12:07:14 +03:00
Marcin Jaworski
60997894d1 Change single to double quotes 2020-03-31 10:20:43 +02:00
Marcin Jaworski
15612d94b5 Support for different charset encondings in PcfFontFile 2020-03-31 10:20:43 +02:00
Hugo van Kemenade
c6115c1ceb
Merge pull request #4230 from dwastberg/new_chops
Added three new channel operations
2020-03-31 10:24:44 +03:00
Andrew Murray
7597a9fbfd Raise warning for more operations 2020-03-31 17:41:47 +11:00
Andrew Murray
027d180eda Raise a DeprecationWarning when comparing PILLOW_VERSION 2020-03-30 21:53:02 +11:00
Hugo
afa758eb33 Re-add deprecated PILLOW_VERSION to give projects more time to upgrade 2020-03-29 18:36:37 +03:00
Andrew Murray
6d8f2f95db Do not reduce size if tile already loaded
Co-Authored-By: Alexander Karpinsky <homm86@gmail.com>
2020-03-29 16:27:43 +11:00
Andrew Murray
4f9118bdbd Added comment [ci skip] 2020-03-29 16:27:37 +11:00
Andrew Murray
ff6ca4159a Prevent masking Image reduce method 2020-03-29 16:27:29 +11:00
Hugo van Kemenade
3970db0535
Merge pull request #4471 from radarhere/exif_imagemagick
Added reading of earlier ImageMagick PNG EXIF data
2020-03-26 13:42:58 +02:00
Hugo van Kemenade
93483a7eeb
Merge pull request #4372 from nulano/cms
Return None if display profile not found in ImageCms.get_display_profile
2020-03-25 21:06:10 +02:00
nulano
5253b0cd57 Use NotImplementedError in ImageGrab if using Linux
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-03-24 19:46:40 +11:00
nulano
0bcc7be89b xcb screengrab docs and fixes 2020-03-24 19:46:40 +11:00
nulano
f9c74825a6 xcb screengrab fixes 2020-03-24 19:40:54 +11:00
nulano
3c39e6fcf6 xcb screengrab support 2020-03-24 19:29:44 +11:00
Peter Rowlands
8373c38840 Drop alpha channels when computing frame delta 2020-03-15 20:02:10 +09:00
Andrew Murray
ca5a81ef27 Added reading of earlier ImageMagick EXIF data 2020-03-14 00:04:58 +11:00
Andrew Murray
9f61be4c72
Merge branch 'master' into apng 2020-03-09 23:29:40 +11:00
Andrew Murray
e41cfade29 Add JPEG comment to info dictionary 2020-03-07 06:57:29 +11:00
Hugo van Kemenade
3f9b615349
Merge pull request #4404 from orlnub123/bugfix/thumbnail
Fix size calculation of Image.thumbnail()
2020-03-06 00:33:03 +02:00
Hugo van Kemenade
0f7ed2d35f
Merge pull request #4435 from radarhere/close_images
Close exclusively opened images
2020-03-06 00:27:46 +02:00
Hugo van Kemenade
974233be45
Merge pull request #4438 from jdufresne/warning
Warn on typos passed to features.check()
2020-03-02 21:26:17 +02:00
Hugo van Kemenade
64a9e0c660
Merge branch 'master' into apng 2020-02-29 17:40:17 +02:00
Andrew Murray
1c1ad65a96
Merge pull request #4424 from hugovk/fix-im-long-name
Fix saving IM images in dir with long path
2020-02-27 20:27:44 +11:00
Andrew Murray
9ba25f8135 Trim end of name, keeping ext 2020-02-26 20:15:23 +11:00
Peter Rowlands
9b72f0513c Adjust is_animated behavior
- Make is_animated APNG behavior consistent with other Pillow formats
- is_animated will be true when n_frames is greater than 1 (for APNG
  this depends on animation frame count + presence or absence of a
  default image)
2020-02-23 15:14:06 +11:00
Peter Rowlands
00fcc53a1d Fix lint errors 2020-02-23 15:14:06 +11:00
Peter Rowlands
9f4716ff30 Fix split fdAT chunk sequence error 2020-02-23 15:14:06 +11:00
Peter Rowlands
35148b99c1 Fix comment
[ci skip]
2020-02-23 15:14:06 +11:00
Peter Rowlands
bdcf980570 Fix pypy test failures 2020-02-23 15:14:06 +11:00
Peter Rowlands
512b060a53 Fix tox -e lint errors 2020-02-23 15:14:06 +11:00
Peter Rowlands
67e3ccffeb Add APNG support
See #3483

Adds support for reading APNG files and seeking through frames,
and adds basic support for writing APNG files.
2020-02-23 15:11:08 +11:00
orlnub123
84c33abaa0 Make key an argument 2020-02-22 12:30:10 +00:00
Hugo
a82ba5b2c2 Save IM: use only filename as name, ditch potentially overlong path 2020-02-22 13:00:25 +02:00
orlnub123
8f21d0ddf0 Improve rounding 2020-02-21 23:38:38 +00:00
Andrew Murray
a8c0794107 Allow saving of zero quality JPEG images 2020-02-21 22:05:44 +11:00
Dag Wästberg
2e02500fa6 change function names to snake_case 2020-02-19 19:38:53 +11:00