Commit Graph

15199 Commits

Author SHA1 Message Date
Andrew Murray
6d3630d406 Update CHANGES.rst [ci skip] 2023-08-01 08:31:16 +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
8eee457725 Added release notes 2023-07-31 21:06:16 +10:00
Andrew Murray
1aa0ade1b6 Update CHANGES.rst [ci skip] 2023-07-31 11:45:00 +10: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
Matthew Treinish
2a55b140b1
Merge pull request #1 from radarhere/handle-repr-exceptions
Simplified code
2023-07-24 19:16:38 -04:00
Hugo van Kemenade
3c5324b07c
Merge pull request #7300 from radarhere/test
Parametrized test
2023-07-23 09:12:40 +02:00
Andrew Murray
e5c94eced2 Simplified code 2023-07-23 16:26:42 +10:00
Hugo van Kemenade
06e66f7f5c
Merge pull request #7296 from radarhere/access 2023-07-22 22:02:15 +02:00
Andrew Murray
0a0a3fc51f Added saving LA images as PDFs 2023-07-22 20:16:45 +10:00
Andrew Murray
26ca569cbe Parametrized test 2023-07-22 20:15:40 +10:00
Andrew Murray
c108d9ddb0 Set alpha channel when saving LA in OpenJPEG 2023-07-22 20:05:31 +10:00
Andrew Murray
ea0abb94cc
Merge pull request #7298 from radarhere/ppm
Added more information about PPM formats
2023-07-22 20:04:17 +10:00
Andrew Murray
064cd6fb83 Added more information about PPM formats 2023-07-22 18:47:55 +10:00
Andrew Murray
577a4d8bf8 Change get_pixel to be specific to images with 2 bands 2023-07-21 21:08:20 +10:00
Andrew Murray
7ffad80294 Removed put_pixel 2023-07-21 20:59:28 +10:00
Andrew Murray
b945154097
Merge pull request #7286 from radarhere/numpy_cygwin
Include NumPy version in Cygwin pip cache key
2023-07-15 18:22:45 +10:00
Andrew Murray
f965b9a81f Update CHANGES.rst [ci skip] 2023-07-14 22:45:29 +10:00
Andrew Murray
1f3ec1b8c9 Include NumPy version in Cygwin pip cache key 2023-07-14 18:25:26 +10:00
Hugo van Kemenade
7a2510cf6b
Merge pull request #7284 from radarhere/gif 2023-07-13 16:05:05 +03:00
Hugo van Kemenade
5b3c20430b
Merge pull request #7285 from radarhere/python312 2023-07-13 16:02:43 +03:00
Andrew Murray
7d7bc2671d
Merge pull request #7280 from hugovk/add-3.12
Declare support for Python 3.12
2023-07-13 20:20:02 +10:00
Andrew Murray
414694e190 Increment Python version check to support Python 3.12 2023-07-13 17:21:06 +10:00
Hugo van Kemenade
7b2c803c56
Fix 3.1 to 3.10
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-07-13 08:32:44 +03:00
Andrew Murray
a682ceaf47 Do not use transparency if it has been removed when normalizing mode 2023-07-13 15:20:44 +10:00
Hugo van Kemenade
ab990fab77 Add support for Python 3.12 2023-07-12 16:31:45 +03:00
mergify[bot]
7a1e28404d
Merge pull request #7272 from radarhere/harfbuzz
Updated harfbuzz to 8.0.0
2023-07-09 13:11:21 +00:00
Andrew Murray
16f5c6d5d7 Updated harfbuzz to 8.0.0 2023-07-09 21:51:42 +10:00
Andrew Murray
1953e43538
Update CHANGES.rst [ci skip] 2023-07-09 15:00:41 +10:00
Andrew Murray
e96f217c60
Merge pull request #7270 from heitbaum/libtiff
Fix missing symbols as libtiff can depend on libjpeg
2023-07-09 14:57:58 +10:00
Rudi Heitbaum
d17947e802 Fix missing symbols as libtiff can depend on libjpeg
when compiling Pillow with libtiff and libjpeg (with jpeg12 enabled -
which is the default with libjpeg-3.0.0) the libtiff object
tif_jpeg_12.c.o uses the following libjpeg12 functions:
jpeg12_read_raw_data, jpeg12_read_scanlines, jpeg12_write_raw_data,
jpeg12_write_scanlines.

update the ordering of libs.append(feature.tiff) to be before
libs.append(feature.jpeg) to allow the linker to include the required
functions.

this issue occurs when the libtiff and libjpeg libraries are static
(not shared.)

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2023-07-08 12:46:34 +00:00
Matthew Treinish
6215cd3e0f
Update tests to handle no longer raising 2023-07-06 09:28:35 -04: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
Hugo van Kemenade
f089c2db8c
Merge pull request #7264 from radarhere/macos 2023-07-06 09:25:29 +03:00
Andrew Murray
e6beb81523 Updated macOS tested Pillow versions 2023-07-06 13:22:50 +10:00
Hugo van Kemenade
3ffa8dca44
Merge pull request #7262 from daimrod/doc-wal-add-link-to-putpalette 2023-07-05 14:43:51 +03:00
Grégoire Jadi
9a32c0f821
doc WAL: Add link to PIL.Image.Image.putpalette
[ci skip]
2023-07-05 11:26:46 +02:00
mergify[bot]
3ee9259150
Merge pull request #7258 from radarhere/libjpeg
Updated libjpeg shared library name
2023-07-04 14:17:51 +00:00
Andrew Murray
5a9c2321b4 Updated libjpeg shared library name 2023-07-04 22:39:41 +10:00
Hugo van Kemenade
be828f4d62
Merge pull request #7254 from radarhere/libjpeg_turbo
Updated libjpeg-turbo to 3.0.0
2023-07-04 07:44:58 +03:00
mergify[bot]
84af332bf1
Merge pull request #7253 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2023-07-03 22:37:52 +00:00
Andrew Murray
082c43656d Updated libjpeg-turbo to 3.0.0 2023-07-04 08:29:17 +10:00
pre-commit-ci[bot]
9e31a677b9
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/asottile/yesqa: v1.4.0 → v1.5.0](https://github.com/asottile/yesqa/compare/v1.4.0...v1.5.0)
- [github.com/tox-dev/tox-ini-fmt: 1.3.0 → 1.3.1](https://github.com/tox-dev/tox-ini-fmt/compare/1.3.0...1.3.1)
2023-07-03 19:29:28 +00:00