Commit Graph

13665 Commits

Author SHA1 Message Date
Andrew Murray
3e8a9b2165 Fixed loading L mode RLE8 images 2022-06-20 21:01:10 +10:00
nulano
a7baa31de8
use getbbox instead of getsize in fuzzers.py 2022-06-20 04:35:42 +01:00
btrekkie
b7dc3109cb
Merge pull request #1 from radarhere/fix-round-to-palette-tests
Added test
2022-06-19 22:10:30 -04:00
nulano
93acbcf9e2
add getbbox and getlength to TransposedFont with tests 2022-06-20 02:37:42 +01:00
btrekkie
f10072603d
Merge pull request #2 from radarhere/fix-round-to-palette
Removed #6377 from release notes
2022-06-19 20:53:17 -04:00
nulano
e2158344a0
update test_imagefont to use textbbox 2022-06-20 01:20:56 +01:00
Andrew Murray
a2eff2aff5 Added test 2022-06-20 09:18:05 +10:00
Andrew Murray
5fc3b6e5bb Update CHANGES.rst [ci skip] 2022-06-20 08:29:37 +10:00
nulano
1bf87556ef
add textbbox and textlength to ImageDraw2 and update tests 2022-06-19 22:04:57 +01:00
nulano
f34a6460ef
update test_font_pcf to use getbbox 2022-06-19 22:04:56 +01:00
nulano
c854bf8d1c
add getbbox and getlength to basic ImageFont and update related tests 2022-06-19 22:04:56 +01:00
nulano
406fe59242
deprecate font.getsize and related functions 2022-06-19 22:03:34 +01:00
mergify[bot]
8de74b9fab
Merge pull request #6370 from LostBenjamin/patch-1
Fix wrong operator bug in PyCMSError exception message
2022-06-19 13:21:43 +00:00
Hugo van Kemenade
1229110fb2
Update comment
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2022-06-19 15:22:02 +03:00
Hugo van Kemenade
607f508080
Update comment
We get "an integer is required (got type NoneType)" with Python 3.7-3.9 on Windows.

We get "'NoneType' object cannot be interpreted as an integer" with Python 3.10 on Windows and all versions on macOS and Ubuntu.
2022-06-19 12:29:39 +03:00
Andrew Murray
709744432a Optimise palettes with more than 128 colors 2022-06-19 16:47:50 +10:00
Andrew Murray
5f6bc0e1a6 Removed #6377 from release notes 2022-06-19 14:07:50 +10:00
pre-commit-ci[bot]
f656711c80 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2022-06-19 00:20:28 +00:00
Ray Gardner
128ed189e5 Improve test in _get_optimize()
Palette can be optimized if number of colors can be reduced by half or more.
2022-06-18 18:07:58 -06:00
William Jacobs
9f9e26522e Fixed bug with rounding pixels to palette
This fixes a bug with rounding pixels to the nearest palette color. Specifically, there is a typo with computing the minimum distance from a palette color to a given cache box. This is causing palette colors to be incorrectly excluded from consideration.
2022-06-18 04:09:41 -04:00
nulano
c2047b8293
fix null check for fribidi_version_info in fribidi shim 2022-06-17 17:13:11 +01:00
Andrew Murray
765d66c069 Update CHANGES.rst [ci skip] 2022-06-16 19:24:36 +10:00
Hugo van Kemenade
b3bc4a7bb4
Merge pull request #6368 from radarhere/fpx 2022-06-16 12:03:54 +03:00
Andrew Murray
4d6e5a0d09 Limit tile size to avoid extending outside image 2022-06-16 08:36:43 +10:00
Hugo van Kemenade
6ae6a241f2 More generic match text 2022-06-15 21:57:20 +03:00
Hugo van Kemenade
959e576dd2 Use f-string 2022-06-15 21:43:18 +03:00
Hugo van Kemenade
983a6139d5 Check other exception messages 2022-06-15 21:42:04 +03:00
Hugo van Kemenade
6c889d1088 Test ImageCms.profileToProfile with invalid flags 2022-06-15 21:34:16 +03:00
Jingxuan He
b47bcc246f
Fix a potential wrong operator bug 2022-06-15 17:39:37 +02:00
Andrew Murray
e80ddfd2b6 Update CHANGES.rst [ci skip] 2022-06-14 22:26:50 +10:00
Andrew Murray
aad3af437e
Merge pull request #5242 from Piolie/plainPPM
Add support for decoding plain PPM formats
2022-06-14 22:24:25 +10:00
Andrew Murray
1bac1cf6f5 Moved all comments logic into _ignore_comments() 2022-06-14 21:39:55 +10:00
Andrew Murray
6eb6232f04 Test comment that ends in the same block 2022-06-14 21:39:55 +10:00
Andrew Murray
216cd374dd Parametrized tests 2022-06-14 21:39:26 +10:00
Andrew Murray
c4d51fb268 Added support for PPM arbitrary maxval in plain formats 2022-06-13 19:55:25 +10:00
Andrew Murray
463d18191a Document use of gnome-screenshot 2022-06-13 10:16:30 +10:00
Andrew Murray
b1ba0909ed
Prefer gnome-screenshot if xdisplay is None
Co-authored-by: Ondrej Baranovič <nulano@nulano.eu>
2022-06-13 09:56:52 +10:00
Andrew Murray
5051a29a4e Merge branch 'main' into plainPPM 2022-06-12 16:11:17 +10:00
Andrew Murray
a48d95061d Use gnome-screenshot on Linux if available 2022-06-12 16:00:31 +10:00
Andrew Murray
c083eadccb Update CHANGES.rst [ci skip] 2022-06-12 12:14:21 +10:00
Hugo van Kemenade
8bd7e81b5d
Merge pull request #6352 from radarhere/apply_transparency
Added apply_transparency()
2022-06-11 17:58:10 +03:00
Andrew Murray
70a060e765 Document apply_transparency() 2022-06-11 22:31:07 +10:00
Andrew Murray
8e37d4c849 Update CHANGES.rst [ci skip] 2022-06-11 09:25:27 +10:00
Hugo van Kemenade
f7ec22f518
Merge pull request #6197 from radarhere/endian
Fixed behaviour change from endian fix
2022-06-10 19:02:54 +03:00
Hugo van Kemenade
31b98bb3ba
Merge pull request #6222 from radarhere/python3
Use python3
2022-06-10 19:02:13 +03:00
Hugo van Kemenade
1c810bea52
Merge pull request #6301 from radarhere/pytest
Added pytest-timeout to test dependencies
2022-06-10 18:45:49 +03:00
Hugo van Kemenade
3a61c9e95e
Merge pull request #6350 from radarhere/remap_rgba_palette 2022-06-10 18:43:09 +03:00
Hugo van Kemenade
355820742b
Merge pull request #6354 from radarhere/libtiff
Revert "Skip test_realloc_overflow unless libtiff 4.0.4 or higher"
2022-06-08 13:48:04 +03:00
Andrew Murray
1c0bc81a65 Revert "Skip test_realloc_overflow unless libtiff 4.0.4 or higher" 2022-06-08 17:51:44 +10:00
Andrew Murray
7972671368
Merge pull request #6353 from python-pillow/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2022-06-07 08:47:46 +10:00