Commit Graph

16869 Commits

Author SHA1 Message Date
Andrew Murray
0051fc9cf8 Removed unnecessary seek 2023-10-28 16:43:43 +11:00
Andrew Murray
3652f431c2 Simplified code 2023-10-28 14:22:39 +11:00
Andrew Murray
76f758e1ef Merge branch 'main' into fix-alpha-for-overlapping-glyphs 2023-10-28 00:41:41 +11:00
Hugo van Kemenade
0a3c8c27ec
Merge pull request #7498 from radarhere/pip_install 2023-10-27 14:27:10 +03:00
Andrew Murray
bff6b4d6a2 Switched from direct setup.py invocation to "pip install ." 2023-10-27 19:17:15 +11:00
pre-commit-ci[bot]
49fd2116c3 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-10-27 05:03:04 +00:00
Hugo van Kemenade
d3fd1734af
Merge pull request #7490 from Yay295/patch-1
Add mode to ImageOps._lut() error message
2023-10-27 07:40:44 +03:00
ZachNagengast
f97570f523 Blend colors with alpha when pasting
- Previously took the highest alpha as threshold
2023-10-26 21:40:41 -07:00
Hugo van Kemenade
57c72b6e00
Merge pull request #7484 from hugovk/setup-to-pyproject 2023-10-26 14:06:34 +03:00
Andrew Murray
e10a58ccce Concatenate multiple EXIF markers 2023-10-26 21:46:38 +11:00
Andrew Murray
85485229e3 Support RGB bitcount 8 2023-10-25 16:24:00 +11:00
Andrew Murray
f58f410b21 ALPHA by itself does not mean bitcount is valid 2023-10-25 15:30:59 +11:00
Benjamin Gilbert
4d7372bfd0 Implement streamtype=1 option for tables-only JPEG encoding
We already support streamtype=2 to skip producing JPEG tables, but
streamtype=1, which skips everything but the tables, was never implemented.
The streamtype=1 stub code dates to Git pre-history, so it's not
immediately clear why.  Implement the missing support.

jpeg_write_tables() can't resume after a full output buffer (it fails with
JERR_CANT_SUSPEND), so it might seem that Pillow needs to pre-compute the
necessary buffer size.  However, in the normal case of producing an
interchange stream, the tables are written via the same libjpeg codepath
during the first jpeg_write_scanlines() call, and table writes aren't
resumable there either.  Thus, any buffer large enough for the normal case
will also be large enough for a tables-only file.

The streamtype option isn't documented and this commit doesn't change that.
It does add a test though.

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2023-10-24 20:30:45 -05:00
Andrew Murray
91f115bead Fixed im.frombytes() for images with a zero dimension 2023-10-25 08:52:26 +11:00
Andrew Murray
5071692039 Fixed Image.frombytes() for images with a zero dimension 2023-10-25 08:52:06 +11:00
Yay295
5295df3b82 add test for autocontrast mode 2023-10-23 23:01:30 -05:00
Yay295
6ddf10c747
use format string instead of concatenation
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-23 21:46:54 -05:00
Andrew Murray
f54dd84586 Test unsupported autocontrast mode 2023-10-24 12:44:00 +11:00
Yay295
ef46608974
add mode to error message 2023-10-23 19:26:08 -05:00
Hugo van Kemenade
5fb892a9e2 Move version from setup.py to pyproject.toml 2023-10-22 20:35:21 +03:00
Hugo van Kemenade
adc64336ab
Add space
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-22 11:07:33 -06:00
Hugo van Kemenade
d8baf5e3de Bump setuptools for Pyroma on 3.8-3.9 2023-10-21 22:37:28 +03:00
Hugo van Kemenade
430920e2a8 Move build config from setup.cfg to pyproject.toml 2023-10-21 22:37:28 +03:00
REDxEYE
2ca9adb79d
Merge pull request #6 from radarhere/improved_dds
Simplified tile creation
2023-10-21 18:41:01 +03:00
Hugo van Kemenade
73c2eb460d Move tools config from setup.cfg to pyproject.toml 2023-10-21 16:23:40 +03:00
Andrew Murray
93e0f39ff3 Removed "mode-" prefix from image names that are not modes 2023-10-21 19:14:46 +11:00
Andrew Murray
12e41e84cd Simplified creating raw tiles 2023-10-21 19:12:52 +11:00
Andrew Murray
8fbb610378 Derive bit count from number of modes 2023-10-21 17:33:04 +11:00
Andrew Murray
4a4a1ee6ad Simplified tile creation 2023-10-21 16:03:21 +11:00
Andrew Murray
a54d28a7bc Merge branch 'main' into improved_dds 2023-10-21 14:27:31 +11:00
Andrew Murray
935958c990 Removed unnecessary casting to enums 2023-10-21 14:27:23 +11:00
Hugo van Kemenade
d05ff5059f
Merge pull request #7481 from radarhere/gray 2023-10-20 08:52:46 +03:00
Andrew Murray
5056850a2f Seek past the data when skipping a layer 2023-10-20 16:09:13 +11:00
Andrew Murray
19aeed07bf Merge branch 'main' into gray 2023-10-20 07:47:17 +11:00
Hugo van Kemenade
a10dec01b5
Merge pull request #7480 from radarhere/lint 2023-10-19 19:02:28 +03:00
Andrew Murray
e760b02bfa Combine if and assert statement 2023-10-19 20:34:28 +11:00
Andrew Murray
d682c18ded Use "gray" more consistently 2023-10-19 19:12:01 +11:00
Andrew Murray
8b71f3d3c1 Added messages to errors 2023-10-19 18:42:41 +11:00
Hugo van Kemenade
0a6fcc2d97
Merge pull request #7472 from radarhere/libjpeg-turbo
Updated libjpeg-turbo to 3.0.1
2023-10-19 07:52:08 +03:00
REDxEYE
f59c9ae348
Merge pull request #4 from radarhere/improved_dds
Loop over enums to create constants
2023-10-17 13:34:30 +03:00
Andrew Murray
51f7359c94 Loop over enums to create constants 2023-10-17 19:50:17 +11:00
Andrew Murray
5e9a2e3000 Renamed "tile_args" to "args" for consistency with existing ImageFile variable 2023-10-17 19:10:24 +11:00
Andrew Murray
d652ea804a Updated libjpeg-turbo to 3.0.1 2023-10-17 07:51:56 +11:00
Andrew Murray
f790878853
Merge pull request #7466 from hugovk/10.1.0-3.12
Add Python 3.12 support to Pillow 10.1.0 release notes
2023-10-16 17:20:43 +11:00
Hugo van Kemenade
5207bde09a
Merge pull request #7470 from radarhere/macos
Updated macOS tested Pillow versions
2023-10-16 08:06:48 +03:00
Hugo van Kemenade
286028d263
Wording
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2023-10-16 08:05:26 +03:00
Andrew Murray
36f44db8cd Updated macOS tested Pillow versions 2023-10-16 15:34:02 +11:00
Andrew Murray
4593508838
Merge pull request #7468 from hugovk/main
Skip non-wheel CI runs for tags
2023-10-16 09:12:02 +11:00
Andrew Murray
8f9e3ffa7e
Merge pull request #7469 from nulano/typo
Fix typos in ImageOps.rst and tutorial.rst
2023-10-16 08:08:25 +11:00
Andrew Murray
0853adcd92
Merge pull request #7467 from hugovk/update-release-checklist
Update release checklist: macOS/Linux artifact is called 'wheels'
2023-10-16 08:05:08 +11:00