Andrew Murray
c167d7a269
Allow GaussianBlur and BoxBlur to accept a sequence of x and y radii
2023-08-12 12:09:20 +10:00
Andrew Murray
39d866b17d
Merge pull request #7311 from k128/main
...
Read WebP duration after opening
2023-08-11 19:46:49 +10:00
Andrew Murray
bfafa460e3
Allow "loop=None" when saving
2023-08-09 10:31:34 +10:00
Andrew Murray
649ad8a804
Merge pull request #7323 from radarhere/pdf_p_transparency
...
Fixed transparency when saving P mode images to PDF
2023-08-08 21:30:23 +10:00
Andrew Murray
15930be644
Use "is" when comparing types
2023-08-08 08:44:03 +10:00
Andrew Murray
5c59807216
Removed unused decoders
2023-08-07 13:54:11 +10:00
Andrew Murray
a70ea82eb5
Write P transparency as SMask
2023-08-07 13:53:19 +10:00
Andrew Murray
c9147c9c85
Moved writing of object into separate function
2023-08-06 22:14:32 +10:00
Andrew Murray
c5b4ad94e8
Do not set ColorSpace for JPXDecode since it is optional
2023-08-04 18:47:28 +10:00
Andrew Murray
bc11b2d6a9
Set SMaskInData to 1 for PDFs with alpha
2023-08-04 18:46:58 +10:00
Hugo van Kemenade
95257dff87
Merge pull request #7299 from radarhere/pdf
2023-08-04 11:43:09 +03:00
Andrew Murray
6ca38552c9
Do not set ColorSpace for JPXDecode since it is optional
2023-08-03 22:07:36 +10:00
Andrew Murray
ddfb7ef14b
Do not set BitsPerComponent for JPXDecode since it is ignored
2023-08-03 22:05:11 +10:00
Andrew Murray
022e650d18
Set SMaskInData to 1 for PDFs with alpha
2023-08-03 19:11:35 +10:00
Andrew Murray
6115d5957f
_decoder.get_next() may return None
2023-08-01 19:16:28 +10:00
Andrew Murray
230a2e3a33
If "reset" is always true, then the argument can be removed
2023-08-01 19:15:15 +10:00
k128
15e5229030
Update WebPImagePlugin.py
2023-07-31 15:32:05 -04:00
pre-commit-ci[bot]
2f5493a5f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-07-31 19:19:57 +00:00
k128
27a0339d64
Update WebPImagePlugin.py
...
Automatically load duration
2023-07-31 15:14:22 -04:00
Hugo van Kemenade
c1c474a1f2
Merge pull request #7307 from radarhere/mode
2023-07-31 17:14:10 +03:00
Andrew Murray
07038d7e89
Merge pull request #7266 from mtreinish/handle-repr-exceptions
...
Handle exceptions in _repr_jpeg_ and _repr_png_
2023-07-31 11:42:44 +10:00
Andrew Murray
9979a822c7
Changed Image mode property to be read-only by default
2023-07-29 09:28:18 +10:00
Andrew Murray
07623d1a7c
Merge pull request #7305 from hugovk/docs-clarify-textlength-return
...
Docs: Clarify that a single value is returned, and depends on the text direction
2023-07-26 08:16:34 +10:00
Hugo van Kemenade
62cd236d1a
Clarify that a single value is returned, and depends on the text direction
2023-07-25 12:31:58 +03:00
Andrew Murray
e5c94eced2
Simplified code
2023-07-23 16:26:42 +10:00
Andrew Murray
0a0a3fc51f
Added saving LA images as PDFs
2023-07-22 20:16:45 +10:00
Andrew Murray
a682ceaf47
Do not use transparency if it has been removed when normalizing mode
2023-07-13 15:20:44 +10:00
Matthew Treinish
9517feccd9
Update src/PIL/Image.py
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-07-06 09:00:00 -04:00
Matthew Treinish
6d440ac995
Handle exceptions in _repr_jpeg_ and _repr_png_
...
In 10.0.0 a _repr_jpeg_ implementation was added to the Image object to
enable the use of display_jpeg() in IPython environments. However, in
some cases the implementation of this method could result in an
exception being raised while trying to generate the jpeg data. The best
example is if the image data is in an RGBA format as a result of the
object being created by opening a PNG file. In this case trying to save
the Image object as a jpeg will error because the jpeg format can't
represent the transparency in the alpha channel. This results in an
exception being raised in the IPython/Jupyter context when outputing the
image object. However, in cases like this IPython allows the repr
methods to return None to indicate there is no representation in that
format available. [1] This commit updates the _repr_png_ and _repr_jpeg_
methods to catch any exception that might be raised while trying to
generate the image data. If an exception is raised we treat that as not
being able to generate image data in that format and return None
instead.
Related to #7259
[1] https://ipython.readthedocs.io/en/stable/config/integrating.html#custom-methods
2023-07-06 08:42:37 -04:00
Andrew Murray
1ffe3354d7
10.1.0.dev0 version bump
2023-07-02 00:59:40 +10:00
Andrew Murray
6e28ed1f36
10.0.0 version bump
2023-07-01 22:08:11 +10:00
Andrew Murray
39a3b1d83e
Fixed deallocating mask images
2023-07-01 18:09:27 +10:00
Andrew Murray
d398fedb9d
Added underscores for readability
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-07-01 07:25:18 +10:00
Andrew Murray
1fe1bb49c4
Added ImageFont.MAX_STRING_LENGTH
2023-06-30 23:32:26 +10:00
Hugo van Kemenade
0ac3677b56
Merge pull request #7199 from radarhere/tiff_close
2023-06-30 09:27:26 +03:00
Hugo van Kemenade
9abef1ad0b
Merge pull request #7226 from radarhere/getcolor
2023-06-30 09:26:51 +03:00
Hugo van Kemenade
be4bfaac9e
Merge pull request #7123 from radarhere/apng
2023-06-30 09:24:20 +03:00
Andrew Murray
0740499151
Prioritise speed in _repr_png_
2023-06-30 09:05:59 +10:00
Hugo van Kemenade
1174a9e7f4
Merge pull request #7097 from radarhere/seek
...
`Image.open()` seeks to the start of file objects
2023-06-30 01:05:47 +03:00
Andrew Murray
8a36b0fc2d
Deprecate PyAccess
2023-06-28 20:10:10 +10:00
Andrew Murray
811bfe3658
Do not use CFFI access by default on PyPy
2023-06-28 17:57:02 +10:00
Andrew Murray
8437d98f7f
Limit size even if one dimension is zero
2023-06-28 11:43:05 +10:00
Andrew Murray
b0b0798820
Lint fix
2023-06-23 22:22:33 +10:00
Rozie
43a12542ad
Update Image.show docs to list all viewers used on linux
...
[ci skip]
Accurate description of how default viewer is chosen
2023-06-23 15:05:28 +03:00
Andrew Murray
cb8956fffb
Convert to HSV if mode is HSV in getcolor()
2023-06-22 23:27:45 +10:00
Andrew Murray
e52fa8fe38
Use relevant extension for temporary file
2023-06-17 14:37:13 +02:00
Antoine Beyeler
f72dd8576e
Changed grabclipboard()
to use PNG compression on macOS
...
Before, a lossy JPG compression was used.
2023-06-17 12:55:58 +02:00
mergify[bot]
561986ee71
Merge pull request #7092 from radarhere/exif_transpose
...
Added in_place argument to ImageOps.exif_transpose()
2023-06-14 07:24:47 +00:00
Andrew Murray
7d97fa8b86
Use snake case
2023-06-14 16:12:47 +10:00
Andrew Murray
541d2605b9
Allow alpha differences to indicate different frames when saving GIF
2023-06-14 14:21:07 +10:00