Latosha Maltba
ef864d72f1
TestSuite: Add support for GraphicsMagick
...
Add support to run the tests using GraphicsMagick's "gm convert" instead
of ImageMagick's "convert".
2021-03-21 14:36:18 +00:00
Hugo van Kemenade
688e6f163f
Merge pull request #5338 from radarhere/webp_save_duration
...
Use duration from info dictionary when saving WebP
2021-03-21 11:35:28 +02:00
Andrew Murray
754752e78f
Allow fewer palette entries than the bit depth maximum
2021-03-21 09:22:01 +11:00
Hugo van Kemenade
7235cf3135
Merge pull request #5345 from radarhere/tofile
...
Increased use of assert_image_equal_tofile
2021-03-21 00:05:28 +02:00
Hugo van Kemenade
e1e9569d8a
Merge pull request #5331 from radarhere/png_bits
...
Added test for saving PNG with bits keyword
2021-03-20 23:25:24 +02:00
Andrew Murray
6591297239
Increased use of assert_image_equal_tofile
2021-03-20 22:32:27 +11:00
Hugo van Kemenade
5a209081b2
Merge pull request #4947 from radarhere/exif
2021-03-19 21:26:33 +02:00
Andrew Murray
298600381f
Replaced tiff_deflate with tiff_adobe_deflate compression when saving
2021-03-19 12:00:29 +11:00
Andrew Murray
94df4ec1c9
Lint fix
2021-03-17 23:16:35 +11:00
Andrew Murray
1d8c5a820c
Use duration from info dictionary when saving
2021-03-17 20:37:31 +11:00
Andrew Murray
b216b367ac
Only set info transparency on first frame
2021-03-17 00:24:57 +11:00
Andrew Murray
c801db7a32
Added test for saving PNG with bits keyword
2021-03-15 21:27:07 +11:00
Andrew Murray
68719fe6ea
Merge branch 'master' into exif
2021-03-15 12:41:45 +11:00
Andrew Murray
c52b45df62
Removed automatic retrieval of GPS IFD
2021-03-15 12:33:06 +11:00
Eric Soroos
ad37e86c40
DecompressionBombError is now an option
2021-03-15 00:21:18 +01:00
Eric Soroos
83dabda6b2
Clean up comments and filters
2021-03-15 00:18:07 +01:00
Eric Soroos
d45247eb66
Add decompression bomb error to font fuzzer
2021-03-15 00:14:43 +01:00
Eric Soroos
76e0422eb7
Isort linted that there's an extra line, which black didn't worry about
2021-03-14 14:13:37 +01:00
Eric Soroos
862e3b9d8e
Apparently, it's a keyword-only parameter
2021-03-14 14:11:48 +01:00
Eric Soroos
961b2c0242
True
2021-03-14 14:03:41 +01:00
Eric Soroos
487dc16ce6
Can't skip windows properly because the depenedncy is in the decorator
2021-03-14 13:57:24 +01:00
Eric Soroos
bb6b991d8d
no colors anymore, they want them to turn black
2021-03-14 13:49:36 +01:00
Eric Soroos
0ea13132a2
Overflow error shows up in x86
2021-03-14 13:42:16 +01:00
Eric Soroos
6189bca3bc
Skip fuzzer tests on windows
2021-03-14 13:42:16 +01:00
Eric Soroos
8b06fec6ab
linty bits
2021-03-14 13:14:39 +01:00
Eric Soroos
c17ce801cf
I see a python file and I want to paint it black
2021-03-14 13:02:48 +01:00
Eric Soroos
becd633d3f
Refactor fuzzers, add fuzzer tests
2021-03-14 13:01:27 +01:00
Hugo van Kemenade
1c086c65d4
Merge pull request #5321 from radarhere/tiff_icc_profile
...
Save ICC profile from TIFF encoderinfo
2021-03-14 10:42:51 +02:00
Hugo van Kemenade
982837ec85
Merge pull request #5325 from radarhere/unclosed_file
...
Fixed unclosed file warning
2021-03-14 10:29:58 +02:00
Eric Soroos
e2577d1736
font fuzzer
2021-03-13 11:35:50 +01:00
Eric Soroos
38692f222f
Delegate building of oss-fuzz versions to pillow
2021-03-13 11:12:05 +01:00
Andrew Murray
2844fd2d18
Fixed unclosed file warning
2021-03-12 22:45:07 +11:00
Andrew Murray
f42d6cf1ac
Save ICC profile from TIFF encoderinfo
2021-03-10 20:16:49 +11:00
Andrew Murray
e54880c652
Moved RGB fix inside ImageQt class
2021-03-10 13:17:19 +11:00
Hugo van Kemenade
3225e39e9a
Merge branch 'master' into alpha_composite
2021-03-08 14:16:46 +02:00
Hugo van Kemenade
d9e4424a7f
Merge pull request #5260 from radarhere/imageqt_exclusive_fp
...
Ensure file is closed if it is opened by ImageQt.ImageQt
2021-03-08 14:13:48 +02:00
Andrew Murray
e7f5bb1831
Ensure file is closed if it is opened by ImageQt.ImageQt
2021-03-08 20:38:03 +11:00
Andrew Murray
9ce3eba7eb
Only draw each pixel once
2021-03-08 19:54:03 +11:00
Andrew Murray
f5d49f4f61
Added rounded_rectangle method
2021-03-08 19:53:59 +11:00
Ondrej Baranovič
14671f715f
Merge branch 'master' into sbix
2021-03-07 20:05:25 +01:00
Hugo van Kemenade
6108596ff8
Merge pull request #5289 from radarhere/ipythonviewer
2021-03-07 14:26:50 +02:00
Hugo van Kemenade
3a27118d76
Merge pull request #5183 from radarhere/rectangle
...
Only draw each rectangle outline pixel once
2021-03-07 12:25:45 +02:00
Hugo van Kemenade
f15f573e51
Merge pull request #5224 from radarhere/mapper
2021-03-07 11:51:46 +02:00
Hugo van Kemenade
a95fee0475
Merge pull request #5215 from radarhere/license
...
Document license for several fonts
2021-03-07 11:41:56 +02:00
Hugo van Kemenade
f9b830f058
Merge pull request #5214 from radarhere/pcx
...
Handle PCX images with an odd stride
2021-03-07 11:41:14 +02:00
Hugo van Kemenade
95986f38da
Merge pull request #5168 from radarhere/mpo
2021-03-07 11:38:36 +02:00
Andrew Murray
690cf9ebe2
Allow alpha_composite destination to be negative
2021-03-06 20:54:21 +11:00
Andrew Murray
5269ab13a7
Lint fix
2021-03-06 10:20:01 +11:00
Eric Soroos
480f6819b5
Fix Memory DOS in Icns, Ico and Blp Image Plugins
...
Some container plugins that could contain images of other formats,
such as the ICNS format, did not properly check the reported size of
the contained image. These images could cause arbitrariliy large
memory allocations.
This is fixed for all locations where individual *ImageFile classes
are created without going through the usual Image.open method.
2021-03-06 10:19:14 +11:00
Andrew Murray
346bfc9537
Added IPythonViewer
2021-03-04 08:55:24 +11:00
Eric Soroos
cbdce6c5d0
Fix for CVE-2021-25291
...
* Invalid tile boundaries lead to OOB Read in TiffDecode.c, in TiffReadRGBATile
* Check the tile validity before attempting to read.
2021-03-01 19:04:48 +11:00
Eric Soroos
86f02f7c70
Fix negative size read in TiffDecode.c
...
* Caught by oss-fuzz runs
* CVE-2021-25290
2021-03-01 19:04:42 +11:00
Eric Soroos
4853e522bd
Fix OOB read in SgiRleDecode.c
...
* From Pillow 4.3.0->8.1.0
* CVE-2021-25293
2021-03-01 19:04:19 +11:00
Eric Soroos
3fee28eb94
Incorrect error code checking in TiffDecode.c
...
* since Pillow 8.1.0
* CVE-2021-25289
2021-03-01 18:51:13 +11:00
Andrew Murray
3e670d7737
Migrated from deprecated numpy bool and float
2021-02-26 20:59:11 +11:00
Andrew Murray
114145a61a
Set all transparent colors to be equal
2021-02-25 22:49:11 +11:00
Andrew Murray
297789284b
Fixed linear_gradient and radial_gradient 32-bit modes
2021-02-22 19:32:52 +11:00
Andrew Murray
8fb5fd7f63
Updated tests for changed helper imports
2021-02-22 12:14:49 +11:00
nulano
c709aa3d28
minor test formatting cleanup
2021-02-22 12:03:01 +11:00
nulano
61ee8ec03c
document and add tests for SBIX color font support
2021-02-22 12:00:20 +11:00
Andrew Murray
c0ee869c2c
Only draw each rectangle outline pixel once
2021-02-22 07:48:58 +11:00
Andrew Murray
e763f8f2be
Save interop IFD when converting Exif to bytes
2021-02-22 07:47:59 +11:00
Andrew Murray
4b14f0102d
Save base IFDs when converting Exif to bytes
2021-02-22 07:47:05 +11:00
Andrew Murray
faf8fad76d
Stopped flattening EXIF IFD into getexif()
2021-02-22 07:47:05 +11:00
Andrew Murray
3495b319bd
Replaced various instances of assert_image_similar with assert_image_similar_tofile
2021-02-21 22:22:29 +11:00
Andrew Murray
a5c251029c
Replaced various instances of assert_image_equal with assert_image_equal_tofile
2021-02-21 22:15:56 +11:00
Hugo van Kemenade
1857bf5570
Merge pull request #5259 from radarhere/warns
2021-02-17 21:31:15 +02:00
Andrew Murray
a1b4b026ff
Added pragma no cover
2021-02-14 07:58:16 +11:00
Andrew Murray
83542c42bf
Added context managers
2021-02-11 21:43:54 +11:00
Andrew Murray
4a0569e97f
Changed zero length assertions to falsy
2021-02-11 13:48:31 +11:00
Andrew Murray
01be700081
Fixed asserting that no warnings were raised
2021-02-10 23:37:55 +11:00
Andrew Murray
57d6e8ca43
Added PyQt6 support
2021-02-10 21:12:32 +11:00
Andrew Murray
bc0c0cb11a
Merge pull request #5250 from Piolie/open_formats_case
...
Changed Image.open formats parameter to be case-insensitive
2021-02-08 18:19:02 +11:00
Piolie
4a9a999dbb
Update Tests/test_image.py
...
Keep the original test cases; add the most likely non-uppercase versions.
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2021-02-05 12:21:27 -03:00
Piolie
0c1675a143
Make formats
parameter in Image.open
accept aNy cAsE
2021-02-04 22:47:53 -03:00
Andrew Murray
63f21609c0
Added context manager
2021-02-02 23:39:53 +11:00
Andrew Murray
11cb3fba9c
Added test
2021-01-30 13:01:42 +11:00
Andrew Murray
e4b9f88de4
Updated test now that Win32 uses map_buffer
2021-01-30 12:59:45 +11:00
Andrew Murray
eb7e5d2797
Moved test that requires libtiff
2021-01-29 08:00:37 +11:00
Andrew Murray
b39977e1c2
Document license for several fonts
2021-01-21 21:33:35 +11:00
Andrew Murray
ac31061f22
Handle PCX images with an odd stride
2021-01-21 19:29:11 +11:00
wiredfool
e40a07bca6
Merge pull request #5150 from wiredfool/valgrind_tests
...
Support for ignoring tests when running valgrind
2021-01-16 16:56:55 +00:00
Andrew Murray
7b4b356fc0
Test for incorrect PixelAccess arguments
2021-01-14 22:09:11 +11:00
Andrew Murray
bdbf1694fc
Allow PixelAccess to use Python __int__ when parsing x and y
2021-01-14 21:31:25 +11:00
Eric Soroos
1d0149c369
feck8
2021-01-07 15:26:23 +01:00
Eric Soroos
a6fa139f62
useless reptile
2021-01-07 14:57:49 +01:00
Eric Soroos
1d7c8e03d0
known failing tests from valgrind -- uninitialized values
2021-01-07 14:52:02 +01:00
Andrew Murray
a58ff327d4
Moved imports to top of file
2021-01-07 14:52:02 +01:00
Andrew Murray
59ee809f13
Updated capitalisation
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2021-01-07 14:52:02 +01:00
Andrew Murray
d35995f945
Lint fixes
2021-01-07 14:52:02 +01:00
Eric Soroos
bd38487324
Ignore this test in valgrind -- the metadata values don't make logical sense.
2021-01-07 14:52:02 +01:00
Eric Soroos
59ed81f838
Add pytest configuration for patching around an unknown valgrind mark
2021-01-07 14:52:02 +01:00
Andrew Murray
eaeaa181dd
Removed unused import
2021-01-07 23:18:24 +11:00
Eric Soroos
37a7c601cc
uglify
2021-01-07 13:07:28 +01:00
Eric Soroos
ffbaa6523d
Internal support for oss-fuzz testing
2021-01-07 12:55:11 +01:00
Andrew Murray
2341c6b933
Merge branch 'master' into jp2-decode-subsample
2021-01-04 23:25:09 +11:00
Jan Solanti
ddd3a2b482
Add tests for issue #4142
2021-01-04 22:47:18 +11:00
Andrew Murray
c8dd1c8422
Merge pull request #5175 from radarhere/tiff
...
Fix TIFF OOB Write error
2021-01-02 21:13:28 +11:00
Andrew Murray
0117694533
Merge pull request #5174 from radarhere/pcx
...
Fix for Read Overflow in PCX Decoding
2021-01-02 21:00:25 +11:00
Andrew Murray
903c67353d
Lint fix
2021-01-02 20:41:17 +11:00
Eric Soroos
2f409261eb
Fix for CVE CVE-2020-35655 - Read Overflow in PCX Decoding.
...
* Don't trust the image to specify a buffer size
2021-01-02 20:38:46 +11:00
wiredfool
eb8c1206d6
Fix CVE-2020-35654 - OOB Write in TiffDecode.c
...
* In some circumstances with some versions of libtiff (4.1.0+), there
could be a 4 byte out of bound write when decoding a YCbCr tiff.
* The Pillow code dates to 6.0.0
* Found and reported through Tidelift
2021-01-02 20:37:48 +11:00
Andrew Murray
1cbb12fb6e
Lint fix
2021-01-02 20:19:26 +11:00
Eric Soroos
7e95c63fa7
Fix for SGI Decode buffer overrun CVE-2020-35655
...
* Independently found by a contributor and sent to Tidelift, and by Google's OSS Fuzz.
2021-01-02 20:09:58 +11:00
Hugo van Kemenade
07bbc46589
Merge pull request #5149 from wiredfool/gif_write_oob_read
2021-01-02 10:14:17 +02:00
Hugo van Kemenade
effa65cb38
Refactor
2021-01-01 20:37:16 +02:00
Hugo van Kemenade
4e3dc9a06b
Add support for PySide6
2021-01-01 20:34:44 +02:00
Andrew Murray
db3b5108dc
Changed MP Type to match #1631 image
2021-01-01 13:00:01 +11:00
Andrew Murray
6175389186
Only read different sizes for "Large Thumbnail" frames
2021-01-01 12:45:02 +11:00
Andrew Murray
62693b7c54
Moved QApplication into one test
2021-01-01 11:33:20 +11:00
Hugo van Kemenade
4093897673
Merge pull request #5126 from radarhere/apng_disposal
...
Use disposal settings from previous frame in APNG
2020-12-31 16:06:33 +02:00
Andrew Murray
77b16efba3
Corrected argument
2020-12-31 16:25:46 +11:00
Andrew Murray
3c482b1b0b
Changed list of single item dictionaries to dictionary
2020-12-30 23:10:29 +11:00
Andrew Murray
8c8b110035
Check string value
2020-12-30 22:40:39 +11:00
Andrew Murray
06b7b97a7a
Use isinstance to check type
2020-12-30 22:39:49 +11:00
Andrew Murray
17c48db318
Use context manager
2020-12-30 22:35:54 +11:00
Andrew Murray
800a265f1c
Test ICNS on all operating systems
2020-12-30 13:09:30 +11:00
Andrew Murray
86ad435ee4
Merge branch 'master' into master
2020-12-30 13:05:35 +11:00
Hugo van Kemenade
85d61ca7d5
Merge pull request #5139 from radarhere/repr_png
...
Added exception explaining that _repr_png_ saves to PNG
2020-12-29 12:43:22 +02:00
Hugo van Kemenade
cd446e6088
Merge pull request #5125 from radarhere/disposal_method
...
Use previous disposal method in GIF load_end
2020-12-29 12:26:14 +02:00
Hugo van Kemenade
25500e83bc
Merge pull request #5089 from radarhere/putpalette_rgba
...
Allow putpalette to accept 1024 integers to include alpha values
2020-12-29 12:17:50 +02:00
UrielMaD
3e9403af56
XMP feature added
2020-12-27 22:32:42 -06:00
UrielMaD
096854d1c8
XMP feature added
2020-12-27 22:29:51 -06:00
UrielMaD
7968279c13
XMP feature added
2020-12-27 22:24:38 -06:00
UrielMaD
cc8070aec5
XMP feature added
2020-12-27 21:39:36 -06:00
UrielMaD
b1b7d2ff18
XMP feature added
2020-12-27 21:37:15 -06:00
UrielMaD
b802588223
XMP feature added
2020-12-27 20:49:28 -06:00
UrielMaD
08935aeaca
XMP feature added
2020-12-27 20:09:10 -06:00
UrielMaD
ee5d05ae21
XMP feature added
2020-12-27 20:01:56 -06:00
UrielMaD
4ff5546203
XMP feature added
2020-12-27 20:00:04 -06:00
UrielMaD
c84f1058ea
XMP feature added
2020-12-27 19:54:06 -06:00
UrielMaD
2474cc2db6
XMP feature added
2020-12-27 19:52:46 -06:00
Eric Soroos
d96945b7c8
Fix Out of bounds read when saving GIF of xsize=1
2020-12-27 16:01:26 +01:00
Andrew Murray
fdce845364
Added exception explaining that _repr_png_ saves to PNG
2020-12-27 15:36:16 +11:00
Andrew Murray
e37a8a263d
Merge pull request #4568 from ziplantil/ico-append-images
...
Add append_images support for ICO
2020-12-24 11:10:33 +11:00
Andrew Murray
46f7b4a439
Updated test name and text
2020-12-24 10:50:43 +11:00
Andrew Murray
5e4e0fa6ee
Use disposal settings from previous frame
2020-12-24 09:55:22 +11:00
Andrew Murray
9940c84b08
Use previous disposal method in load_end
2020-12-23 13:22:53 +11:00
Andrew Murray
8794610c76
Block TIFFTAG_SUBIFD
2020-12-22 11:38:02 +11:00
Andrew Murray
83d82ae150
Merge pull request #5098 from hugovk/deprecate-freetype
...
Deprecate FreeType 2.7
2020-12-20 13:35:41 +11:00
Andrew Murray
c52c3ae3e2
Merge pull request #5102 from hugovk/add-path-tests
...
Add tests for ImagePath.Path
2020-12-20 07:43:56 +11:00
Andrew Murray
b0af0d4076
Travis CI is no longer used
2020-12-19 21:57:32 +02:00
Hugo van Kemenade
9e21ef7338
Remove old Travis CI config
2020-12-19 21:57:32 +02:00
Hugo van Kemenade
ceaed2e058
Add tests for ImagePath.Path
2020-12-18 22:54:48 +02:00
Hugo van Kemenade
2b319f2ce4
Simplify: remove class
2020-12-18 22:54:40 +02:00
Hugo van Kemenade
27bf17009c
Deprecate FreeType 2.7, to be removed in Pillow 9 (2022-01-02)
2020-12-17 10:28:06 +02:00
nulano
db35e6404e
remove FreeType<2.7 metrics in test_imagefont
2020-12-12 15:29:41 +01:00
nulano
a3ab868b0f
xfail tests failing on ppc64le on GHA
...
(cherry picked from commit 9c7fb5bd14c3064fede96131a0f7f67abf26a4e7)
2020-12-12 15:26:42 +01:00
nulano
989c9b303a
xfail failing libtiff tests on big-endian
...
(cherry picked from commit 25ce233edf732edb5660f877365379377a64f136)
2020-12-12 15:26:42 +01:00
Andrew Murray
a666c91e10
Allow putpalette to accept 1024 integers to include alpha values
2020-12-12 14:12:30 +11:00
nulano
86993df834
remove duplicate values
2020-11-25 07:38:13 +00:00
nulano
74048f9b4f
remove FT 2.3 from tests
2020-11-25 07:27:11 +00:00
Hugo van Kemenade
85e991e5b6
Don't include test-skipping 'except' in coverage
2020-11-04 16:05:51 +02:00
Andrew Murray
a357ff12ad
Simplified test
2020-11-04 22:39:25 +11:00
Andrew Murray
d1650cb2b3
Document FreeMono license [ci skip]
2020-10-23 21:08:06 +11:00
nulano
2586b7ddef
add tests for subsampled jpeg2000 image decoding
2020-10-20 07:16:28 +01:00
Andrew Murray
f886bc973b
Moved string_dimension image to pillow-depends
2020-10-19 21:32:56 +11:00
gofr
9980981c2e
De-zigzag JPEG's DQT when loading; deprecate convert_dict_qtables
...
Re-order the JPEG quantization tables to normal order when
loading. This wastes a few CPU cycles if you don't need them.
But it has the advantage of hiding the zigzag order JPEG
implementation detail of these tables completely from Pillow
users.
This difference has led to cases where:
* arrays in zigzag order were taken from a dict and passed
directly as a qtables parameter, causing them to be "zigzagged"
again by libjpeg.
* dicts with lists in normal order being passed to
JpegImagePlugin.convert_dict_qtables, causing them to be
unnecessarily "de-zigzagged".
2020-10-17 20:20:59 +02:00
Hugo van Kemenade
b074d87179
Merge pull request #4760 from qiankanglai/dds-rgba8888
...
Support raw rgba8888 for dds
2020-10-15 08:10:01 +03:00
Hugo van Kemenade
1cb3e2f742
Merge pull request #4918 from gofr/4825-jpeg-16-bit-qt
2020-10-14 17:58:12 +03:00
Andrew Murray
1a3367400c
Added reading of IFD tag type
2020-10-14 23:37:54 +11:00
mergify[bot]
50787ad2c4
Merge pull request #4971 from radarhere/freetype
...
Updated freetype to 2.10.3
2020-10-13 06:10:01 +00:00
Hugo van Kemenade
9a93f6ee45
Merge pull request #4959 from nulano/anchor-part3
2020-10-12 19:27:08 +03:00
Hugo van Kemenade
c7b0fe1bca
Merge pull request #4963 from nulano/implicit-function
2020-10-12 19:23:40 +03:00
nulano
c277ff4304
remove old PyPy compatibility code
2020-10-12 16:14:51 +01:00
nulano
b49ebad5f5
Merge remote-tracking branch 'upstream/master' into anchor-part3
2020-10-12 16:14:00 +01:00
nulano
cb3f6c09e7
add spaces between pytest.mark.parametrize parameters
2020-10-12 16:08:16 +01:00
Hugo van Kemenade
c1a9f889f3
Merge pull request #4964 from nulano/pypy
2020-10-12 17:59:55 +03:00
nulano
90e8255ba4
Merge remote-tracking branch 'upstream/master' into anchor-part3
...
# Conflicts:
# Tests/test_imagefontctl.py
2020-10-12 15:50:45 +01:00
Hugo van Kemenade
309cb9e5c4
Merge pull request #4927 from radarhere/tuple
2020-10-12 14:40:22 +03:00
Hugo van Kemenade
43c3f4de80
Merge pull request #4955 from nulano/ft-color3
2020-10-12 13:52:01 +03:00
Andrew Murray
518b783c64
Removed OSError in favour of DecompressionBombError
2020-10-12 19:32:48 +11:00
nulano
40c9a5a2a0
compatibility for LCMS<2.7, vix LCMS version string
2020-10-12 02:58:24 +01:00
nulano
c06bb8044d
remove PyPy3-7.1.x compatibility code
2020-10-12 02:08:50 +01:00
nulano
df2ea75683
remove redundant test file
2020-10-11 22:39:07 +01:00
nulano
b5fe0e7986
add helper.skip_unless_feature_version
2020-10-11 22:26:11 +01:00
nulano
d84185579e
move bitmap font tests to test_imagefont
2020-10-11 21:45:10 +01:00
nulano
b85fabca70
Apply suggestions from code review
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-10-11 22:25:16 +02:00
Hugo van Kemenade
15c339470d
Merge pull request #4523 from xtsm/ellipse
...
Implemented another ellipse drawing algorithm
2020-10-11 18:04:34 +03:00
Andrew Murray
166cc00843
Updated freetype to 2.10.3
2020-10-11 21:35:21 +11:00
gofr
938e251088
Add new JPEG test image
2020-10-10 20:08:39 +02:00
gofr
d54dc4062f
fixup! Add tests for loading/saving of 16-bit quantization tables
2020-10-10 20:01:28 +02:00
gofr
2f0544b542
Add tests for loading/saving of 16-bit quantization tables
2020-10-10 18:53:49 +02:00
nulano
1551e120ae
add textlength and textbbox to ImageDraw
2020-10-09 01:02:51 +01:00
nulano
395aa946a9
add getbbox and getlength, with tests
...
Squashed commits:
[ec9ec31b] add tests for invalid anchor
(cherry picked from commit 9e50a6a47f79876ee56942152047f03fff03c49b)
[386a9170] fix lint and docs
(cherry picked from commit 2d0d5282fcfc3ee332a41e60b865ee766445cc3d)
[29f5d4c9] restore and document previous getsize behaviour
see discussion in issue 4789
(cherry picked from commit 9fbc94571ce0ed42fdd11e99f343a1613c9dc6d3)
[0ffd51a0] add getbbox and getlength, with tests
(cherry picked from commit c5f63737476a998c81e589e5819d21ca69bb7b46)
2020-10-09 00:56:58 +01:00
nulano
786eaf11e2
downgrade NotoColorEmoji to minimize size
2020-10-07 13:31:05 +01:00
nulano
24f3d85a3e
add test for {1bpp, 2bpp, 4bpp, 8bpp} bitmap fonts
2020-10-07 11:57:15 +01:00
nulano
28d313305a
fix tests
2020-10-07 05:29:18 +01:00
nulano
55db572467
add tests for opaque COLR and CBDT fonts
2020-10-07 05:29:18 +01:00
nulano
9151da162c
add support for CBDT and embedded bitmaps in truetype fonts
2020-10-07 05:29:17 +01:00
Hugo van Kemenade
a7f384a813
Merge pull request #4292 from radarhere/private_png_chunks
...
Added reading and writing of private PNG chunks
2020-10-05 23:49:09 +03:00
Hugo van Kemenade
b29cab08d3
Merge pull request #4930 from nulano/anchor-part2
2020-10-05 20:19:33 +03:00
Andrew Murray
7a1f0f6a8f
Fixed bug in Exif __delitem__
2020-10-05 09:45:05 +11:00
nulano
8cdac68706
Revert "Skip due to segmentation fault"
...
This reverts commit 7711a4c94d
.
2020-10-04 22:48:23 +01:00
Hugo van Kemenade
7711a4c94d
Skip due to segmentation fault
2020-10-04 00:33:31 +03:00
nulano
7d284b72ab
f-strings!
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-09-22 22:19:04 +01:00
Andrew Murray
26bf1c3524
Moved CVE images to pillow-depends
2020-09-23 00:14:40 +10:00
nulano
0838d8ea62
add tests for multiline text with anchor
2020-09-22 14:58:21 +02:00
nulano
3fc1be06e6
add and fix tests for text anchors
2020-09-22 11:31:43 +02:00
Andrew Murray
b304a13bca
Updated test
2020-09-22 13:06:52 +10:00
Andrew Murray
27c0747518
Allow tuples with one item to give single color value in getink
2020-09-20 14:23:05 +10:00
Hugo van Kemenade
93d011efb5
Merge pull request #4910 from nulano/anchor-part1
2020-09-19 13:41:15 +03:00
Andrew Murray
c196af6ddb
Fixed loading profile with non-ASCII path on Windows
2020-09-13 13:53:58 +10:00
nulano
d1edf86953
tests cleanup
2020-09-09 05:35:55 +02:00
nulano
ee1cc6ad7c
remove use of FT_Set_Transform
2020-09-09 02:14:49 +02:00
nulano
54e067779b
fix and add tests
...
(cherry picked from commit 0b711f10d0490863976699c051f2027b6799d501) (+1 squashed commits)
Squashed commits:
[9d4e6c17] fix tests
2020-09-09 02:12:21 +02:00
Andrew Murray
c83ffc6aea
Fixed effect_spread bug for zero distance
2020-09-08 18:51:58 +10:00
Andrew Murray
fac2d2781e
Merge pull request #4837 from nulano/formats
...
Add formats parameter to open
2020-09-05 20:49:59 +10:00
Andrew Murray
9c22425881
Lint fix
2020-09-05 13:32:59 +10:00
Hugo van Kemenade
3dba4ee10a
Merge pull request #4846 from comhar/features/compute_polygon_coordinates
2020-09-04 23:28:43 +03:00
nulano
a340dc5fd3
Merge remote-tracking branch 'upstream/master' into formats
2020-09-04 21:07:34 +02:00
Hugo van Kemenade
799fa9764f
Merge pull request #4882 from nulano/putpixel
2020-09-03 19:22:30 +03:00
Hugo van Kemenade
ddc4c64664
Merge branch 'master' into rm-3.5
2020-09-02 20:36:30 +03:00
Hugo van Kemenade
9f1f63a46b
Merge pull request #4862 from radarhere/subifds
2020-09-02 16:58:55 +03:00
Andrew Murray
186a4723c8
Added test for empty GPS IFD
2020-09-02 21:14:36 +10:00
Hugo van Kemenade
e0eec1eb56
Merge branch 'master' into rm-3.5
2020-09-01 20:16:46 +03:00
Andrew Murray
bb013270af
Removed trailing comma
2020-08-31 18:50:15 +10:00
Andrew Murray
298b7d0333
Update pre-commit
2020-08-31 18:50:15 +10:00
Andrew Murray
0a46cbfea9
Reverted NaN change, so that NaN != NaN
2020-08-28 20:55:47 +10:00
luphord
4bb35c57dd
clarify comment
...
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-08-28 20:47:17 +10:00
luphord
ae5e0218e9
remove whitespace
2020-08-28 20:47:17 +10:00
luphord
1fd9ccfe3c
test Exif self-equality
2020-08-28 20:47:16 +10:00
luphord
9db5266fa7
test IFDRational equality
2020-08-28 20:47:16 +10:00
Andrew Murray
0af193afc0
Added test
2020-08-24 21:32:55 +10:00
Hugo van Kemenade
27d34d2f13
Merge pull request #4823 from radarhere/close
...
Do not try to close file pointer if file pointer is empty
2020-08-23 14:26:11 +03:00
Tommy C
b142560488
Rename b_circle
and bounding_circle
+ accept ((x0, y0), r)
...
Summary of changes
- Rename `b_circle` and `bounding_circle`
-`bounding_circle` now accepts both formats below:
- (x0, y0, r)
- ((x0, y0), r)
2020-08-22 20:19:23 +01:00
nulano
4b2a0173d3
group test cases
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-21 14:11:47 +02:00
nulano
76a51270fa
split up test
2020-08-20 23:23:15 +02:00
Tommy C
df9329f9f0
Replace bbox
with b_circle
, kwargs with args + minor tweaks
...
Summary of changes:
- `ImageDraw.regular_polygon` now accepts a bounding circle which
inscribes the polygon. A bounding circle is defined by a center point
(x0, y0) and a radius. A bounding box is no longer accepted.
- All keyword args have been replaced with positional args.
Misc
- Test image file renaming, minor variable name changes
2020-08-20 20:46:11 +01:00
nulano
4bb78d53a3
give proper error message for invalid putpixel color type
2020-08-20 00:01:03 +02:00
Tommy C
ac7d41545d
Update regular_polygon
args + arg checks
...
Summary of changes
- Allow positional args in `regular_polygon` method
- Allow multiple bounding box formats
- (e.g. bbox = [(x0, y0), (x1, y1)] or [x0, y0, x1, y1])
- Check if bounding box is square
- Update var names
- b_box => bbox
- nb_sides => n_sides
2020-08-16 21:07:16 +01:00
Tommy C
0ed01dd964
Add ImageDraw.regular_polygon
2020-08-16 13:29:13 +01:00
Andrew Murray
14af7bb5ac
Do not try to close fp if fp is empty
2020-08-15 13:07:14 +10:00
Hugo van Kemenade
ef986e376f
Merge branch 'master' into master
2020-08-13 23:58:42 +03:00
Andrew Murray
e96109b93c
Added writing of subIFDs
2020-08-13 22:25:24 +10:00
Hugo van Kemenade
1fe4070af6
Drop support for EOL Python 3.5
2020-08-11 22:29:44 +03:00
Hugo van Kemenade
fdc09206d0
Merge pull request #4828 from radarhere/exif_text
2020-08-11 21:52:12 +03:00
navneeth
2d3a841e4b
testing with approx tuple to fix ubuntu test failures
2020-08-12 00:08:29 +09:00
navneeth
d0de431fe4
testing with approx tuple to fix ubuntu test failures
2020-08-12 00:06:16 +09:00
navneeth
01aeaa4cad
added explicit test for autocontrast implementation - pixel value check
2020-08-11 23:47:48 +09:00
navneeth
4841bbe2a5
added explicit test for autocontrast implementation - pixel value check
2020-08-11 23:36:39 +09:00
Hugo van Kemenade
cb26b4d40f
Merge branch 'master' into master
2020-08-09 13:57:46 +03:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03:00
Navneeth Subramanian
faf913d0f8
Update Tests/test_imageops.py
...
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-08 19:32:52 +09:00
navneeth
fa493809a6
ENH: Autocontrast - Code review feedback
2020-08-07 14:31:17 +09:00
navneeth
8fad541531
ENH: Autocontrast method enhancement - adding the option to specify mask for contrast computation
2020-08-06 09:00:13 +09:00
nulano
2b061b68db
add formats parameter to Image.open to restrict list of formats attempting to read an image file
2020-08-03 00:24:02 +02:00
Andrew Murray
5da1a8adcf
Read EXIF data tEXt chunk into info as bytes instead of string
2020-07-31 17:42:48 +10:00
Hugo van Kemenade
10615a7da7
Upgrade Python syntax for 3.6+
...
Co-authored-by: nulano <nulano@nulano.eu>
2020-07-30 10:09:18 +03:00
Hugo van Kemenade
48c7d84bf7
Merge pull request #4814 from radarhere/sysconfig
2020-07-29 09:50:41 +03:00
Andrew Murray
fda22ed82e
Removed unused variables
2020-07-29 07:54:33 +10:00
Andrew Murray
a10634e13f
Do not explicitly import distutils
2020-07-26 14:59:30 +10:00
Andrew Murray
42bb401e88
Replaced distutils sysconfig
2020-07-25 20:03:27 +10:00
Andrew Murray
11de331886
Merge pull request #4798 from hugovk/rm-deprecated-notimplemented
...
Remove long-deprecated Image.py functions
2020-07-24 20:48:20 +10:00
Andrew Murray
b243a6113e
Merge pull request #4797 from hugovk/rm-distutils.version
...
Replace distutils.version with packaging.version.parse
2020-07-19 08:12:31 +10:00
Hugo van Kemenade
0b7077a385
Merge pull request #4788 from samamorgan/master
2020-07-17 11:07:56 +03:00
Hugo van Kemenade
40aefc6ba5
Remove im.offset, deprecated in 2001; and fromstring and tostring, deprecated in 2013
2020-07-17 10:55:20 +03:00
Sam Morgan
74e02e6c4e
Add test for PSD mimetype
2020-07-16 08:26:42 -07:00
Hugo van Kemenade
304d3c1080
Replace distutils.version with packaging.version.parse, distutils will eventually be removed from stdlib
2020-07-16 14:57:39 +03:00
Jakub Kulík
ee856bdc25
Fix expected failures on big endian systems without CI
2020-07-16 11:04:16 +02:00
Hugo van Kemenade
559510b378
Remove attributes deprecated since 3.2.0
2020-07-09 23:53:22 +10:00
Kanglai Qian
b5c59878da
support raw rgba8888 for dds
2020-07-07 00:22:57 +08:00
Hugo van Kemenade
ec6f2d41f8
Merge pull request #4749 from millionhz/autocontrast
2020-07-05 12:10:23 +03:00
Andrew Murray
9432bba6d1
Moved tests
2020-07-02 20:28:00 +10:00
Andrew Murray
4b5eab4c17
Simplified code
2020-07-02 19:14:28 +10:00
Hamza
16e804b892
linting fixed
2020-07-01 04:37:17 +05:00
Hamza
cbf4f328c7
fixed tests
2020-07-01 04:20:19 +05:00
Hamza
b768cc09d7
added test
2020-07-01 04:01:06 +05:00
Stanislau Tsitsianok
88651c334f
Try to fix CI
2020-06-29 23:58:58 +03:00
Stanislau Tsitsianok
7dedb1402f
Merge remote-tracking branch 'upstream/master' into ellipse
2020-06-29 23:31:25 +03:00
Stanislau Tsitsianok
5830a641cc
Added more tests
2020-06-29 23:31:04 +03:00
Stanislau Tsitsianok
9a9d3a050a
Fixed tests
2020-06-29 22:49:11 +03:00
Hugo van Kemenade
74a4c88a12
Merge pull request #4741 from radarhere/icns
2020-06-29 20:21:51 +03:00
Hugo van Kemenade
645f7f2346
Merge pull request #4742 from radarhere/apng_dispose
...
Fixed loading non-RGBA mode APNGs with dispose background
2020-06-29 17:15:34 +03:00
Andrew Murray
4cf7c562e4
Merge pull request #4726 from hugovk/fix-png-disposal-comparison-bug
...
APNG: Fix setting disposal
2020-06-30 00:01:15 +10:00
Andrew Murray
cd01a5ab9f
Added disposal test
2020-06-29 22:02:01 +10:00
Andrew Murray
cdf4936c07
Fixed loading non-RGBA mode images with dispose background
2020-06-29 21:20:57 +10:00
Andrew Murray
1e8d418f42
Fixed ICNS file pointer saving
2020-06-28 17:24:27 +10:00
Hugo van Kemenade
b4e7202dcb
Merge pull request #4698 from nulano/skips
2020-06-27 14:19:49 +03:00
Hugo van Kemenade
d641bdc504
Fix isort
2020-06-27 14:05:34 +03:00
Hugo van Kemenade
f6cb5efa15
Merge pull request #4714 from radarhere/show
...
Deprecated _showxv
2020-06-25 23:15:51 +03:00
Hugo van Kemenade
7dd8837967
Merge pull request #4647 from radarhere/blocklist
...
Allow libtiff to write COLORMAP tag
2020-06-25 23:04:29 +03:00
Andrew Murray
ee06255ff0
Deprecated _showxv
2020-06-23 22:20:58 +10:00
Hugo van Kemenade
71fadd5c67
Merge pull request #4722 from radarhere/line
2020-06-23 14:53:56 +03:00
Andrew Murray
9979efff12
Merge pull request #4646 from nulano/show-command
...
Deprecate Image.show(command="...")
2020-06-23 19:47:57 +10:00
Andrew Murray
b042483baa
Replaced assert_image_similar with assert_image_similar_tofile
2020-06-23 19:17:41 +10:00
Andrew Murray
c1fe0b4e0c
Use hypot function
2020-06-23 19:17:00 +10:00
Kirill Kuzminykh
6d2fe429c2
Reformat code of `test_file_jpeg.py
.
2020-06-22 12:20:57 +03:00
Andrew Murray
95ace8a39c
Merge branch 'master' into fix_jpeg_magic_number
2020-06-22 18:42:58 +10:00
Hugo van Kemenade
1bc67c9f0f
Merge pull request #4700 from nulano/features-version
2020-06-21 21:36:46 +03:00
nulano
12ddff729b
Merge branch 'master' into skips
2020-06-21 18:05:27 +01:00
Hugo van Kemenade
7b759e160a
Merge pull request #4615 from nulano/clipboard-png
2020-06-21 18:56:04 +03:00
Hugo van Kemenade
390b34c231
Merge pull request #4664 from nulano/ft-getsize-mode
2020-06-21 18:53:03 +03:00
nulano
d5a6b2584e
add tests for version numbers
2020-06-21 18:59:01 +10:00
nulano
a324f4a466
add version to features info block
2020-06-21 18:58:39 +10:00
Andrew Murray
8383e840e4
Merge pull request #4626 from radarhere/stripbytecounts
...
Change STRIPBYTECOUNTS to LONG if necessary when saving
2020-06-21 09:02:56 +10:00
Hugo van Kemenade
bcb8cbbf22
Merge pull request #4639 from radarhere/jfif
...
Write JFIF header when saving JPEG
2020-06-20 15:54:11 +03:00
Hugo van Kemenade
2d9dcc7657
Merge pull request #4627 from radarhere/tiff_jpeg
...
Replaced tiff_jpeg with jpeg compression when saving TIFF images
2020-06-20 15:49:09 +03:00
Andrew Murray
d728cd5875
Allow libtiff to write COLORMAP tag
2020-06-20 22:38:38 +10:00
Hugo van Kemenade
7d9ac36e42
Merge pull request #4605 from radarhere/byte_tags
...
Writing TIFF tags: improved BYTE, added UNDEFINED
2020-06-20 15:33:18 +03:00