Commit Graph

2650 Commits

Author SHA1 Message Date
Nulano
a81b945129 Update CmsProfile docs to match _imagingcms type stubs 2024-03-28 17:26:05 +01:00
Nulano
21566ebcdc add type hints to pyCms functions in ImageCms 2024-03-28 17:23:54 +01:00
Hugo van Kemenade
6464d5cf91
Merge pull request #7894 from radarhere/fits_gzip 2024-03-28 18:09:55 +02:00
Andrew Murray
142473c7b4 Support GZIP_1 compression 2024-03-26 21:29:28 +11:00
Andrew Murray
fb84c546b7 Removed references to the "current version" 2024-03-26 06:00:03 +11:00
Andrew Murray
38f9193796 Added release notes for #7872 2024-03-25 10:35:00 +11:00
Andrew Murray
d7dba1cc67 Added release notes for #7882 2024-03-25 10:04:02 +11:00
Andrew Murray
0248e41800 Added release notes for #7891 2024-03-25 10:02:19 +11:00
Jeffrey A. Clark
567ee6bdaa
Update docs/conf.py
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-23 17:50:41 -04:00
pre-commit-ci[bot]
66ef6ad9ac [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-23 13:49:20 +00:00
Jeffrey A. Clark (Alex)
4197263dff Clean up authors and contributors
- `s/Jeffrey A. Clark (Alex)/Jeffrey A. Clark/g`. People can figure out that I am Alex.
- We've added "contributors" to Fredrik's copyright statements because it seems appropriate that it be there based on: https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#02b5-117.
- Fredrik is the PIL author and I am the Pillow author.
- Consistently apply all of the above everywhere.
2024-03-23 09:40:39 -04:00
Hugo van Kemenade
3bbc865afc
Merge pull request #7872 from radarhere/webp_alpha_quality 2024-03-21 18:20:40 +02:00
Andrew Murray
0c436023a0 Corrected heading 2024-03-17 22:06:56 +11:00
Andrew Murray
73bb28c866 Removed blank lines 2024-03-17 21:59:57 +11:00
Andrew Murray
4f677f2183 Reordered sections to match template 2024-03-17 21:59:46 +11:00
Andrew Murray
d2dfb2f87f Swap order to match description 2024-03-17 21:43:04 +11:00
Andrew Murray
4ef6e4ef9b Highlight code 2024-03-17 21:41:55 +11:00
Andrew Murray
b3c1937456 Changed wording 2024-03-17 21:37:31 +11:00
Andrew Murray
fe06d419fc Added heading 2024-03-17 18:30:56 +11:00
Andrew Murray
9cf0ece464 Changed heading level to be consistent 2024-03-17 18:18:04 +11:00
Andrew Murray
5fd4ad4aa0 Corrected CVEs being split into heading and text 2024-03-17 18:16:52 +11:00
Andrew Murray
5208712b49 Added "API Additions" section 2024-03-17 18:12:15 +11:00
Andrew Murray
3b68a56c10 Remove CVE already mentioned in heading 2024-03-17 18:10:39 +11:00
Andrew Murray
1528ac1a45 Consistently highlight filenames in headings 2024-03-17 18:05:07 +11:00
Andrew Murray
c7e4014411 Fixed heading 2024-03-17 18:02:39 +11:00
Hugo van Kemenade
b25a054241 Update release notes 2024-03-17 01:17:38 +02:00
Hugo van Kemenade
2568fd891f Remove listing of newly-added release notes in 10.4 release notes 2024-03-16 20:29:48 +02:00
Alex Clark
e7d8774d70 Wording 2024-03-15 14:20:12 -04:00
Alex Clark
115179e5a6 Update release notes for #7864 2024-03-15 14:08:48 -04:00
Alex Clark
5b3dabb3a0 Add release notes for 2.6.0 for #7864 2024-03-15 10:27:29 -04:00
Jeffrey A. Clark
4438305a95
Update docs/releasenotes/7.1.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:03:19 -04:00
Alex Clark
45975e482d Update release notes to match template for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
b5f77799ca Update release notes to match template for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
180f37b18e Update release notes to match template for #7864
- Categorized previously uncategorized notes under ``Other Changes``
- TODO: Fix categorization of notes in ``Other Changes`` that belong in other categories
2024-03-15 10:01:42 -04:00
Alex Clark
f316fd9c7a Restore and update 3.1.1 release notes for #7864
- Restore accidentally overwritten contents
- Update to match updated template
2024-03-15 10:01:42 -04:00
Alex Clark
0ea144b087 Update 3.1.1, 8.1.1 release notes for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
ae5f1de624 Back fill release notes for #7864
- Back fill release notes for 3.1.1
- Add credits to 2.3.2, 2.5.2
2024-03-15 10:01:42 -04:00
Alex Clark
ad134c63fa Combine CVEs 2024-03-15 10:01:42 -04:00
Alex Clark
15deb71c3a 80 char wrap + file name tick for #7864 2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
69a4e0d4c9 Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b485c769c Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
e97722b7ce Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
bae0c988e6 Update docs/releasenotes/8.1.2.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
4d81ec804a Update docs/releasenotes/8.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark
7b1c39cebe Update docs/releasenotes/9.0.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
3aefe92bdf [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00
Alex Clark
c69dcc1c29 Fix headers and retro-add notes for #7864
- Include CVE link in title (via @hugovk)
- Retro-add release notes for 2.3.2, 2.5.2 for CVE-2014-3589
2024-03-15 10:01:42 -04:00
Alex Clark
f61e184ab0 Fix based on 29a361d60ead196695523212dbb08a3ec4ca4b0d 2024-03-15 10:01:42 -04:00
Alex Clark
92f088919f Fix template based on 29a361d60ead196695523212dbb08a3ec4ca4b0d 2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
f77273db8f Update docs/releasenotes/10.0.0.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
1f117339bd Update docs/releasenotes/10.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
deca2dd5fc Update docs/releasenotes/6.2.0.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a78fbfed37 Update docs/releasenotes/6.2.2.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
914db6c230 Update docs/releasenotes/2.3.1.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
Jeffrey A. Clark (Alex)
a200d716e8 Update docs/releasenotes/2.3.1.rst
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2024-03-15 10:01:42 -04:00
pre-commit-ci[bot]
20d451b359 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-15 10:01:42 -04:00
Alex Clark
2b8dfaac7c Retro-add release notes for 2.3.1 for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
95b3138024 Clean up for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
231e7384d0 Clean up for #7864 2024-03-15 10:01:42 -04:00
Alex Clark
04f60eba9c Clean up for #7864
Before back fill, clean up.

- Add suggested CVE format to template
- Move Security to the top of release notes
- Fix headings
- Update all existing CVE notes to match template
2024-03-15 10:01:42 -04:00
Andrew Murray
64c8c27271 Added alpha_quality argument when saving 2024-03-13 18:55:29 +11:00
Hugo van Kemenade
350d7f2b01
Merge pull request #7806 from radarhere/imagefont 2024-03-11 17:43:40 +02:00
Hugo van Kemenade
9d5563c3b7
Merge pull request #7749 from radarhere/libimagequant 2024-03-11 17:39:10 +02:00
Andrew Murray
a364d9c04a
Merge pull request #7862 from hugovk/update-platform-support
Update CI targets on GitHub Actions
2024-03-09 10:40:44 +11:00
Hugo van Kemenade
2833e367f5
Remove comma
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-03-08 16:31:55 +02:00
pre-commit-ci[bot]
5e9ab05b03 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-07 19:55:41 +00:00
Alex Clark
966d53b241 Wording 2024-03-07 14:54:23 -05:00
Alex Clark
f166006409 Wording 2024-03-07 14:43:42 -05:00
Alex Clark
e734dac917 Remove strike config 2024-03-07 12:18:11 -05:00
Alex Clark
06c8edb98c Link to #1535 2024-03-07 12:06:04 -05:00
Alex Clark
dec53f10d1 Wording 2024-03-07 12:02:22 -05:00
Alex Clark
debf556525 Remove strike css 2024-03-07 11:59:50 -05:00
Jeffrey A. Clark (Alex)
da5de3c115
Update docs/about.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-03-07 11:50:22 -05:00
Hugo van Kemenade
2078eb4e4e Update CI targets on GitHub Actions 2024-03-07 18:44:38 +02:00
Alex Clark
c4067b08eb Update "What about PIL?" section
PyPI moderators gave PIL project to Pillow team in January 2020
2024-03-07 10:46:56 -05:00
Andrew Murray
d9076fa8ca Merge branch 'main' into build-editable 2024-03-07 21:32:09 +11:00
Andrew Murray
d2d6beaf34 Simplified anchors 2024-03-07 19:24:37 +11:00
Andrew Murray
c96cfffef6 Updated libimagequant to 4.3.0 2024-03-07 15:31:24 +11:00
Hugo van Kemenade
6eb6b52a68 Fix tab activation per OS 2024-03-06 18:09:07 +02:00
Hugo van Kemenade
e9f8295950 Consistent header underlines 2024-03-06 18:09:07 +02:00
Hugo van Kemenade
3106446dad Move short 'Old Versions' section to 'Building From Source' page 2024-03-06 18:08:53 +02:00
Hugo van Kemenade
a027f698d2 Fix ref link 2024-03-06 17:28:06 +02:00
Hugo van Kemenade
128d0edbd6 Move anchors back into place 2024-03-06 17:22:39 +02:00
Andrew Murray
7aba72a48f Removed unused sphinx-reredirects 2024-03-06 08:44:07 +11:00
Andrew Murray
fe8f829f58
Mark file as orphan 2024-03-06 07:35:11 +11:00
Andrew Murray
a4ac095a49
List extensions alphabetically 2024-03-04 22:06:02 +11:00
Andrew Murray
bdabbd6b0f Added sphinx-reredirects to docs Makefile 2024-03-01 08:21:14 +11:00
Andrew Murray
e39fb2ef14 Merge branch 'main' into install-doc-dir 2024-03-01 08:15:00 +11:00
Andrew Murray
cc094caaa4
Merge branch 'main' into imagefont 2024-02-29 22:56:46 +11:00
Hugo van Kemenade
bebf038e49
Merge pull request #7837 from radarhere/openjpeg 2024-02-29 13:43:18 +02:00
Andrew Murray
dcbe402f77 Changed SupportsGetMesh protocol to be public 2024-02-29 20:16:41 +11:00
Andrew Murray
c00d019186 Updated openjpeg to 2.5.2 2024-02-29 08:03:47 +11:00
Alex Clark
fd1cefe2b6 Leave a note
- Re-add installation.rst
2024-02-27 07:21:38 -05:00
Alex Clark
a72a5f9ae2 Leave a note 2024-02-27 07:12:21 -05:00
pre-commit-ci[bot]
fde1ccb555 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-27 06:46:45 -05:00
Alex Clark
ecba08f8c4 Add sphinx-reredirects to handle redirects
- For example, installation.html now redirects to installation/index.html
2024-02-27 06:46:45 -05:00
Alex Clark
73e49cad21 Move installation.rst to installation/*.rst
- Add index
- Move content to sections
- Rearrange sections
2024-02-27 06:46:45 -05:00
Andrew Murray
7a5b91dd2c Removed references to Twitter 2024-02-26 20:29:47 +11:00
Andrew Murray
e30298f356 Consistently place versionremoved under heading 2024-02-25 06:53:29 +11:00
Jeffrey A. Clark (Alex)
ee37c63a10
Merge pull request #7814 from hugovk/docs-rm-warnings
Remove outdated installation warnings
2024-02-24 12:53:54 -05:00
Hugo van Kemenade
f11ff462b3 Move outdated installation warnings to 'Deprecations and removals' 2024-02-24 14:53:25 +02:00
Andrew Murray
f8a54b78a3
Merge pull request #7782 from evanmiller/webp-get-next-without-gil
Release GIL while calling `WebPAnimDecoderGetNext`
2024-02-22 21:50:41 +11:00
Andrew Murray
b5c6f20007 Added release notes 2024-02-22 20:32:46 +11:00
Andrew Murray
83433d89a1
Merge pull request #23 from nulano/imagefont
Show how to use anchors to align text in ImageFont deprecations
2024-02-20 21:55:07 +11:00
Andrew Murray
56a02b76eb
Corrected image path
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2024-02-20 21:37:40 +11:00
Andrew Murray
64579510c0 Updated alt text 2024-02-20 21:37:06 +11:00
Hugo van Kemenade
531b1e1b9a Remove outdated installation warnings 2024-02-19 22:50:06 +02:00
Nulano
7490aee836 Show how to use anchors to align text in imagefont deprecations 2024-02-19 20:18:18 +01:00
Andrew Murray
55d0289a7d Added image to illustrate size vs bbox 2024-02-19 17:08:21 +11:00
Andrew Murray
b6fdf2e9e7 Updated package name for Tidelift 2024-02-19 07:54:58 +11:00
Andrew Murray
617b9cbc00 Describe difference between size and bbox 2024-02-17 11:50:48 +11:00
Andrew Murray
d3b974b786 Use font in ImageDraw examples 2024-02-17 11:19:32 +11:00
Andrew Murray
bf9ba35b20
Merge branch 'main' into build-editable 2024-02-15 11:12:17 +11:00
Hugo van Kemenade
3977124908
Update docs/reference/internal_modules.rst
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-02-10 14:54:20 +02:00
Andrew Murray
159fc068ca Merge branch 'main' into type-hints-replace-io.BytesIO 2024-02-07 20:50:36 +11:00
pre-commit-ci[bot]
27b0cf67e7 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-02-05 17:18:52 +00:00
Hugo van Kemenade
61d47c3dfa More support for arbitrary os.PathLike 2024-01-27 14:06:06 +02:00
Hugo van Kemenade
231d54b9df Replace io.BytesIO in type hints 2024-01-22 23:21:56 +02:00
Hugo van Kemenade
5baace9eb7
Merge pull request #7702 from nulano/deprecate-cms-constants 2024-01-11 10:51:21 +02:00
Andrew Murray
71ba20bb19 Shortened table description 2024-01-09 13:47:21 +01:00
Andrew Murray
1e8a03cd2d Link to Python enum documentation 2024-01-09 13:47:21 +01:00
Andrew Murray
931821688c Added release notes 2024-01-09 12:22:25 +11:00
Andrew Murray
605208ea47
Merge branch 'main' into perspective 2024-01-09 07:16:24 +11:00
Andrew Murray
208a34c079
Merge branch 'main' into deprecate-cms-constants 2024-01-09 07:15:41 +11:00
Hugo van Kemenade
b1f549f60c
Merge pull request #7696 from nulano/pfm 2024-01-08 19:22:53 +02:00
Nulano
586e774094 add PFM support to release notes 2024-01-08 17:35:01 +01:00
Nulano
bddfebc331 add license comment to ImageCms; explicitly say "no replacement" for deprecations without a replacement 2024-01-08 12:57:23 +01:00
Nulano
bb855583ea Update PyPI links to use pillow (lowercase) 2024-01-08 02:28:48 +01:00
Nulano
edc46e223b document ImageCms deprecations 2024-01-08 01:27:41 +01:00
Andrew Murray
ba6399cad1 Added PerspectiveTransform 2024-01-07 19:34:27 +11:00
Hugo van Kemenade
fcaed26ab1
Merge pull request #7676 from nulano/lcms2-flags 2024-01-06 16:43:20 +02:00
Nulano
0d841aab9a add support for grayscale pfm image format 2024-01-06 14:08:51 +01:00
Andrew Murray
c46cf19a58
Merge pull request #7684 from nulano/docs-imagetransform
Improve ImageTransform documentation
2024-01-06 06:45:19 +11:00
Hugo van Kemenade
85c552934a Goodbye Travis CI 2024-01-04 12:51:05 +02:00
Hugo van Kemenade
27eacddfd5
Merge pull request #7688 from radarhere/macos_imagegrab 2024-01-03 16:27:51 +02:00
Andrew Murray
424737ef49 Updated macOS tested Pillow versions 2024-01-03 11:18:16 +11:00
Andrew Murray
d134110ace If bbox is omitted, screenshot is taken at 2x on Retina screens 2024-01-03 09:01:35 +11:00
Andrew Murray
e6c9b42dc2
Merge pull request #7685 from nulano/win-arm-tested
Update Windows 11 tested versions
2024-01-03 08:38:05 +11:00
Nulano
b4a8271288 update Windows 11 tested versions 2024-01-02 17:26:11 +01:00
Nulano
b4e690049d document config setting "-C parallel=n" for number of CPUs to use for compilation 2024-01-02 15:37:32 +01:00
Nulano
fc7088a561 improve ImageTransform documentation 2024-01-02 14:52:12 +01:00
Ondrej Baranovič
81ea98e494
document ImageCmsTransform's base class
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-02 14:10:07 +01:00
Andrew Murray
ec6a57f69d Updated description
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2024-01-02 21:27:12 +11:00
Andrew Murray
fd14824649 bbox on macOS is not 2x on retina screens 2024-01-02 19:15:13 +11:00
Nulano
0b2e2b224f document ImageCms.Flags 2024-01-01 21:40:41 +01:00
Nulano
26b2aa5165 document ImageCms.{ImageCmsProfile,Intent,Direction}; fix ImageCms.core.CmsProfile references
(cherry picked from commit f2b1bbcf65b327c14646d4113302e3df59555110)
2024-01-01 21:40:41 +01:00
Nulano
de62b25ed3 fix image url in "Reading from URL" example 2024-01-01 18:06:46 +01:00
Andrew Murray
d93a5ad70b
Merge pull request #7553 from bgilbert/jpeg-rgb
Add `keep_rgb` option when saving JPEG to prevent conversion of RGB colorspace
2024-01-01 23:55:37 +11:00
Andrew Murray
24e9485e6b
Merge pull request #7671 from radarhere/imagetransform
Added type hints to ImageTransform
2024-01-01 21:45:56 +11:00
Andrew Murray
57096f55cf
Merge pull request #7642 from nulano/types-util
Add type hints to _util
2024-01-01 21:27:57 +11:00
Andrew Murray
59100652b6 Added type hints to ImageTransform 2024-01-01 20:33:34 +11:00
Andrew Murray
ea4fde8443
Merge branch 'main' into update-release-notes 2024-01-01 19:05:13 +11:00
Hugo van Kemenade
c7a1ce16ad
Merge pull request #7670 from radarhere/releasenotes
Added release notes for #7589 and #7654
2024-01-01 10:04:12 +02:00
Andrew Murray
ca94dae26b
Merge branch 'main' into update-release-notes 2024-01-01 19:03:59 +11:00
Hugo van Kemenade
c08426b834
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-01 10:02:22 +02:00
Hugo van Kemenade
681f8183f3
Remove member-order
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2024-01-01 10:01:42 +02:00
Andrew Murray
f6aa00dd1e Added release notes for #7654 2024-01-01 17:00:50 +11:00
Andrew Murray
1c183827e4 Added release notes for #7589 2024-01-01 16:47:37 +11:00
Andrew Murray
8676cbd4e7 Do not try and crop glyphs from outside of source ImageFont image 2024-01-01 16:13:24 +11:00
Andrew Murray
9bcd477058 Use consistent language 2024-01-01 14:19:16 +11:00
Hugo van Kemenade
129a4936d3
Update docs/releasenotes/10.2.0.rst
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2023-12-31 09:53:59 -07:00
Hugo van Kemenade
2825323e84 Release notes: add ImageColor and ImageMode optimisations, and type hints 2023-12-31 17:48:31 +02:00
Nulano
aa605bc6f2 document IptcImagePlugin deprecations 2023-12-31 17:41:13 +02:00
Hugo van Kemenade
f9e3d073b3
Merge pull request #7663 from radarhere/copyright 2023-12-31 17:23:22 +02:00
Andrew Murray
2ec53e36e9 Apply ImageFont.MAX_STRING_LENGTH to ImageFont.getmask() 2023-12-31 23:17:28 +11:00
Andrew Murray
ee6e12a803 Updated copyright year 2023-12-31 18:37:16 +11:00
Andrew Murray
557ba59d13 Include further builtins 2023-12-30 09:30:12 +11:00
Ondrej Baranovič
de381d0efb
Update docs/reference/internal_modules.rst
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-27 16:17:51 +01:00
Nulano
3a4298d16c avoid hard dependency on typing_extensions 2023-12-27 14:55:30 +01:00
Andrew Murray
ca9b49f8dd
Merge pull request #7636 from bgilbert/jp2-docs
Document JPEG 2000 support for writing YCbCr and reading subsampled color
2023-12-27 21:59:39 +11:00
Benjamin Gilbert
a72b5963d7 Document JPEG 2000 support for writing YCbCr and reading subsampled color
Read support for subsampled RGB and YCbCr color channels was added in
4f4c3b34f8 and not documented at the time.  Write support for YCbCr
appears to date to 61fb89ec54, the original commit.

Retain the existing language about YCbCr input conversion to RGB, even
though it's not completely correct.  OpenJPEG through 2.5.0 doesn't set
color_space in opj_read_header(), so we end up in our
OPJ_CLRSPC_UNSPECIFIED fallback path, which guesses sRGB if there's no
component subsampling.  This means we currently can't round-trip YCbCr via
JPEG 2000.  The next OpenJPEG release will fix this, so leave the docs as
is.

Also fix typo: .j2p -> .jp2.
2023-12-26 12:52:27 -06:00
Benjamin Gilbert
e2018a6697 Add release note for JPEG keep_rgb option
Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-26 12:37:44 -06:00
Benjamin Gilbert
a5fab5fc0b Fail if chroma subsampling selected when writing RGB JPEG
The user presumably doesn't intend to subsample the green and blue
channels.
2023-12-26 12:37:35 -06:00
Andrew Murray
bc5ec2268a Added type hints 2023-12-26 22:26:11 +11:00
Hugo van Kemenade
43b2f61e79 Add 'from __future__ import annotations' using Ruff/isort 2023-12-21 13:13:31 +02:00
Hugo van Kemenade
18907b5f7e
Merge pull request #7568 from radarhere/gif_transparency 2023-12-21 12:58:07 +02:00
Benjamin Gilbert
4b422db243 Add keep_rgb option to prevent RGB -> YCbCr conversion during JPEG write
libjpeg automatically converts RGB to YCbCr by default.  Add a keep_rgb
option to disable libjpeg's automatic conversion of RGB images during
write.
2023-12-13 18:26:35 -06:00
Andrew Murray
45e44085c0
Merge pull request #7609 from bgilbert/encoder-errors
Translate encoder error codes to strings; deprecate `ImageFile.raise_oserror()`
2023-12-13 20:45:47 +11:00
Benjamin Gilbert
e1fb1ab5c4 Deprecate raise_oserror() for removal in Pillow 12
It's only useful if the caller has an IMAGING_CODEC_* error code, which
are only produced by codec decode() methods and are automatically
translated by ImageFile.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-12-13 02:17:32 -06:00
Benjamin Gilbert
ec17dc11ba Translate encoder error codes to strings
When decoding, we use raise_oserror() to convert codec error codes to
strings.  Adapt that code to be used when encoding as well.  Add a new
helper function that returns the exception so we can still raise
`from exc`.
2023-12-12 23:13:51 -06:00
Andrew Murray
4c7eeec4fc
Merge pull request #7600 from nulano/anchor-clarify-docs
Clarify default anchor alignment
2023-12-13 07:36:00 +11:00
Nulano
af2d976880 clarify default anchor alignment 2023-12-12 17:22:19 +01:00
Andrew Murray
9e5173846e
Updated wording
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-08 21:04:15 +11:00
Andrew Murray
c45b7590ad Added release notes for #7488 2023-12-08 19:20:48 +11:00
Andrew Murray
5c560ca1a9 Added release notes for #7491 2023-12-08 19:20:43 +11:00
Andrew Murray
43a4477cd9 Added release notes for #7584 and #7587 2023-12-08 19:20:37 +11:00
Andrew Murray
afae56829a Added release notes for #7599 and #7593 2023-12-07 20:54:30 +11:00
Hugo van Kemenade
7cc0482804
Merge pull request #6486 from REDxEYE/improved_dds 2023-12-06 22:51:05 +02:00
Andrew Murray
d1a2235413
Added tilde prefix
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-12-06 21:23:26 +11:00
Andrew Murray
e43dd6610d
Merge pull request #7578 from radarhere/font
Handle pathlib.Path in FreeTypeFont
2023-12-06 12:09:16 +11:00
Andrew Murray
00c6a89177 Link to plugin 2023-12-06 11:10:20 +11:00
Andrew Murray
66c5e9ae98 Added release notes 2023-12-05 19:31:33 +11:00
Benjamin Gilbert
dafaa1c512 Document JPEG streamtype option
streamtype=1 is new in 10.2.0; the other values have existed since Git
pre-history.
2023-12-04 06:58:37 -06:00
Andrew Murray
9a6c47a9d2 Merge branch 'main' into font 2023-12-04 22:25:58 +11:00
Andrew Murray
2b734a33c7 Updated lcms2 to 2.16 2023-12-04 08:32:39 +11:00
Andrew Murray
bd7874a6f1 Update Windows wheels info 2023-12-01 12:01:34 +11:00
Nulano
984700b1f7 fix documentation link to PIL.ImageFont.Layout 2023-11-30 23:58:47 +01:00
Andrew Murray
40976799c6 Use html_css_files instead of setup() 2023-11-28 20:04:41 +11:00
Andrew Murray
06687642b5 window.navigator has already been used 2023-11-28 19:48:41 +11:00
Andrew Murray
cf97e8644d Do not test for iOS 2023-11-28 19:48:31 +11:00