Andrew Murray
806f43f0b7
Simplified code
2022-07-23 14:19:28 +10:00
Andrew Murray
5bd893f760
Rename format to BC6H and BC6HS
2022-07-23 14:16:40 +10:00
Andrew Murray
0d0cf6374c
Restored unimplemented DXGI format test
2022-07-19 07:18:48 +10:00
ShadelessFox
fac18a5b60
Add BC6 tests
2022-07-18 22:24:41 +03:00
Andrew Murray
9f6a315092
Added ABGR MASK_MODE
2022-07-14 07:25:28 +10:00
Andrew Murray
40a0999303
Raise ValueError if PNG sRGB chunk is truncated
2022-07-11 20:02:41 +10:00
nulano
74e0b954f2
test {ImageFont,TransposedFont}.getsize() deprecation
2022-07-01 11:22:47 +02:00
Andrew Murray
0d91d13a6e
Merge branch 'main' into deprecate-getsize
2022-06-30 20:37:37 +10:00
Andrew Murray
c9f1b35e98
Added GIF decompression bomb check
2022-06-30 12:47:35 +10:00
Hugo van Kemenade
714ff4e397
Merge pull request #6386 from dawidcrivelli/handle_pcf_missing_characters
...
Handle PCF fonts files with less than 256 characters
2022-06-27 07:59:50 +03:00
Andrew Murray
93805d5257
Limit expected number of characters to nencoding
2022-06-27 14:05:13 +10:00
Andrew Murray
fc497ffe5e
Merge pull request #6378 from raygard/fix_get_optimize
...
Improved GIF optimize condition
2022-06-27 09:12:20 +10:00
Andrew Murray
e5046b1057
Reverted to __array_interface__ with the release of NumPy 1.23
2022-06-24 23:08:36 +10:00
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
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
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
nulano
93acbcf9e2
add getbbox and getlength to TransposedFont with tests
2022-06-20 02:37:42 +01: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
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
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
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
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
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
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
5051a29a4e
Merge branch 'main' into plainPPM
2022-06-12 16:11:17 +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
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
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
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
11be163143
Added apply_transparency()
2022-06-06 22:47:58 +10:00
Andrew Murray
4c8aff9798
Allow remapping P images with RGBA palettes
2022-06-06 00:12:48 +10:00
Hugo van Kemenade
38931c1e47
Merge pull request #6278 from radarhere/polygon
...
Fixed drawing translucent 1px high polygons
2022-06-04 09:34:37 +03:00
Hugo van Kemenade
55d3c07e1d
Merge pull request #6232 from radarhere/colormap
2022-06-01 23:12:13 +03:00
Hugo van Kemenade
37c642338b
Merge pull request #6337 from RedShy/p2pa_images_conversion
...
Fix "P"->"PA" image conversion
2022-06-01 22:17:55 +03:00
Hugo van Kemenade
b261e17907
Merge pull request #6335 from radarhere/exif
2022-06-01 16:36:03 +03:00
Andrew Murray
71d6a7b14f
Merge pull request #6303 from radarhere/disconnected
...
Only try to connect discontiguous corners at the end of edges
2022-05-28 16:40:00 +10:00