Commit Graph

13574 Commits

Author SHA1 Message Date
Hugo van Kemenade
e774be01fe
Merge pull request #6391 from radarhere/pcx
Pad PCX palette to 768 bytes when saving
2022-06-23 09:50:22 +03:00
Andrew Murray
e6b7730c62 Update CHANGES.rst [ci skip] 2022-06-22 19:49:02 +10:00
Hugo van Kemenade
6dd5b2e8c9
Merge pull request #6377 from btrekkie/fix-round-to-palette
Fixed bug with rounding pixels to palette
2022-06-22 12:31:25 +03:00
Andrew Murray
317286d260 Pad palette to 768 bytes 2022-06-22 17:27:49 +10:00
Andrew Murray
db741bf25f Skip remaining characters after IndexError 2022-06-22 16:55:33 +10:00
Andrew Murray
b00b509dd8 Update CHANGES.rst [ci skip] 2022-06-22 07:54:44 +10:00
Hugo van Kemenade
557e293ece
Merge pull request #6361 from radarhere/wayland
Use gnome-screenshot on Linux if available
2022-06-21 18:02:31 +03:00
Hugo van Kemenade
e9715b2c23
Merge pull request #6384 from radarhere/bmp_rle8
Fixed loading L mode BMP RLE8 images
2022-06-21 18:01:14 +03:00
Dawid Crivelli
f160e698a1 Handle PCF fonts files with missing characters 2022-06-20 16:20:08 +02:00
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