Yay295
5b6b6346bb
Fix param in test_image.py function
2023-08-07 09:49:20 -05:00
Andrew Murray
9979a822c7
Changed Image mode property to be read-only by default
2023-07-29 09:28:18 +10:00
Andrew Murray
fd310512b9
Set C palette to be empty by default
2023-07-17 23:04:43 +10:00
Hugo van Kemenade
c8ec15980b
Remove constants deprecated in 9.1.0
2023-04-06 16:11:36 +03:00
Hugo van Kemenade
ddc4e90235
Remove im.category and related Image.NORMAL, Image.SEQUENCE, Image.CONTAINER, deprecated in 8.2.0
2023-04-06 16:11:36 +03:00
Andrew Murray
11d100ce5d
Support creating BGR;15, BGR;16 and BGR;24 images
2023-03-20 00:30:10 +11:00
Andrew Murray
9e6ae98362
Dropped support for BGR;32 mode
2023-03-13 17:31:12 +11:00
pre-commit-ci[bot]
24183d652e
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-02-06 19:27:19 +00:00
Andrew Murray
3e37a919b1
Prevent register_open from adding duplicates to ID
2023-01-28 22:43:04 +11:00
Hugo van Kemenade
7b0008bb82
Merge pull request #6842 from radarhere/zero
...
Return from ImagingFill early if image has a zero dimension
2022-12-31 13:23:12 +02:00
Andrew Murray
2803304763
Skip timeout checks on slower running valgrind job
2022-12-31 13:47:07 +11:00
Andrew Murray
91b01f4cc2
Return from ImagingFill early if image has a zero dimension
2022-12-30 16:48:33 +11:00
Andrew Murray
bcdb208fe2
Restored Image constants, except for duplicate Resampling attributes
2022-12-28 09:44:53 +11:00
Hugo van Kemenade
0934c25686
Merge pull request #6762 from radarhere/exif_hide_offsets
2022-12-23 16:05:21 +02:00
Andrew Murray
9dfba1fe2b
Merge branch 'main' into exif_hide_offsets
2022-12-22 09:03:11 +11:00
Andrew Murray
2a86d7353f
Always initialize all plugins in registered_extensions()
2022-12-19 08:19:15 +11:00
Andrew Murray
8ada23ed04
Added IFD1 reading
2022-12-05 09:09:00 +11:00
Andrew Murray
3473eb8e7f
Added Exif hide_offsets()
2022-11-26 15:44:03 +11:00
Andrew Murray
ddede39932
Removed blank line
2022-10-23 14:24:30 +11:00
Mark Mayo
69baeccf2e
some pylint warnings
...
Fixed some pylint issues
2022-10-13 15:20:11 +13:00
Andrew Murray
9fa421923c
Removed requirement for 256 palette entries
2022-08-28 15:58:30 +10:00
Andrew Murray
0ed03d4a58
Parametrize tests
2022-08-23 21:41:32 +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
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
27f5c4d8fb
Merge pull request #6176 from radarhere/gif_transparency
...
Improve transparency handling when saving GIF
2022-05-27 08:31:37 +02:00
Andrew Murray
99f4623a8d
Remove transparency if it cannot be remapped
2022-05-21 17:39:37 +10:00
Andrew Murray
9c9aa9964e
Skip tests unless JPEG 2000 is available
2022-04-29 19:17:03 +10:00
Hugo van Kemenade
855c1a12da
Use self for first method parameter
2022-04-10 23:39:54 +03:00
Andrew Murray
ae8de77721
Raise ValueError when trying to save empty image
2022-03-28 21:18:53 +11:00
Hugo van Kemenade
9134f07615
Merge pull request #6134 from radarhere/created_cleanup
...
If an error occurs after creating a file, remove the file
2022-03-24 08:08:36 +02:00
Andrew Murray
71c30ed266
If an error occurs after creating a file, remove the file
2022-03-14 23:33:45 +11:00
Andrew Murray
07210e9425
Handle EXIF data truncated to just the header
2022-03-12 08:23:40 +11:00
Andrew Murray
dae1f691c2
Updated checks that no warnings were raised
2022-02-21 13:49:01 +11:00
Andrew Murray
b38a67fa12
Merge branch 'main' into enum
2022-02-10 09:52:24 +11:00
Hugo van Kemenade
0a49ec1cc0
Merge pull request #5891 from shamrin/stable-jupyter-text-output
...
Keep IPython/Jupyter text/plain output stable
2022-01-23 10:29:50 +02:00
Andrew Murray
ddb0a6393f
Added test
2022-01-18 11:46:29 +11:00
Andrew Murray
ed8073e846
Deprecated constants in favour of enums
2022-01-15 10:07:07 +11:00
Andrew Murray
b5160591bc
Return an empty bytestring from tobytes() for an empty image
2022-01-07 16:29:38 +11:00
Andrew Murray
1998d12bb6
Added sys import
2021-12-30 00:11:20 +11:00
Andrew Murray
4d1d2c9855
Merge pull request #5807 from DWesl/tkimaging-on-cygwin
...
Use the Windows method to get TCL functions on Cygwin
2021-12-30 00:08:31 +11:00
DWesl
5a41417224
Skip test_readonly_save on Cygwin.
...
The test seems to require opening a file for reading, mmapping it,
then opening that file for writing. Windows doesn't allow this.
2021-11-04 19:48:53 -04:00
Hugo van Kemenade
716a0baf74
Drop support for EOL Python 3.6
2021-10-19 15:34:52 +03:00
Andrew Murray
83864b01cf
Removed Image.show command parameter
2021-10-18 11:08:51 +11:00
Andrew Murray
499040491b
Removed Image._showxv
2021-10-18 11:06:06 +11:00
Andrew Murray
cd50d468ba
Removed PILLOW_VERSION
2021-10-18 11:05:53 +11:00
Andrew Murray
4038a287ee
Corrected pathlib.Path detection when saving
2021-07-24 14:21:33 +10:00
Hugo van Kemenade
50302231ed
Merge pull request #5552 from radarhere/palette
2021-06-28 19:01:54 +03:00
Andrew Murray
6db0e96102
Ensure image is loaded in remap_palette
2021-06-28 20:12:22 +10:00
Andrew Murray
4d36feefc7
Set palette to be empty by default
2021-06-23 19:22:21 +10:00
Andrew Murray
622ba122ce
Added Exif load_from_fp method to get TIFF tag_v2 data
2021-04-29 21:21:55 +10:00
Eric Soroos
1c872a9eda
lint stuff
2021-04-10 16:58:01 +02:00
Eric Soroos
a3a69c8385
conditional mark for valgrind ignore
2021-04-09 23:53:24 +02:00
wiredfool
9a683db339
Merge pull request #5274 from radarhere/gradient
...
Fixed linear_gradient and radial_gradient I and F modes
2021-03-28 14:35:22 +01:00
Andrew Murray
71cd97a519
Added deprecation warnings
2021-03-28 15:51:28 +11:00
Andrew Murray
68719fe6ea
Merge branch 'master' into exif
2021-03-15 12:41:45 +11:00
Andrew Murray
690cf9ebe2
Allow alpha_composite destination to be negative
2021-03-06 20:54:21 +11:00
Andrew Murray
297789284b
Fixed linear_gradient and radial_gradient 32-bit modes
2021-02-22 19:32:52 +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
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
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
Eric Soroos
1d7c8e03d0
known failing tests from valgrind -- uninitialized values
2021-01-07 14:52:02 +01: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
Hugo van Kemenade
309cb9e5c4
Merge pull request #4927 from radarhere/tuple
2020-10-12 14:40:22 +03:00
Andrew Murray
7a1f0f6a8f
Fixed bug in Exif __delitem__
2020-10-05 09:45:05 +11:00
Andrew Murray
27c0747518
Allow tuples with one item to give single color value in getink
2020-09-20 14:23:05 +10:00
Andrew Murray
c83ffc6aea
Fixed effect_spread bug for zero distance
2020-09-08 18:51:58 +10:00
nulano
a340dc5fd3
Merge remote-tracking branch 'upstream/master' into formats
2020-09-04 21:07:34 +02:00
Andrew Murray
298b7d0333
Update pre-commit
2020-08-31 18:50:15 +10:00
Hugo van Kemenade
dd87dd50c0
Update to isort 5 with Black profile support
2020-08-08 22:39:29 +03: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
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
Andrew Murray
9432bba6d1
Moved tests
2020-07-02 20:28:00 +10:00
Andrew Murray
ee06255ff0
Deprecated _showxv
2020-06-23 22:20:58 +10:00
nulano
66954ad176
deprecate Image.show(command="...")
2020-05-25 18:57:02 +02:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Hugo
ada137eba5
Fix Flake8
2020-04-01 10:52:21 +03:00
Eric Soroos
124f4bb591
Tests for PCX OOB Access
2020-04-01 10:50:48 +03:00
Andrew Murray
750bbc7256
Parametrized test
2020-03-31 17:41:52 +11:00
Andrew Murray
7597a9fbfd
Raise warning for more operations
2020-03-31 17:41:47 +11:00
Andrew Murray
027d180eda
Raise a DeprecationWarning when comparing PILLOW_VERSION
2020-03-30 21:53:02 +11:00
Hugo
44e661f25a
Convert to use pytest
2020-02-22 23:03:01 +02:00
Andrew Murray
8482919a37
Converted most assert statements to pytest
2020-02-23 00:06:21 +11:00
Jon Dufresne
98a2081a78
Move safe imports to the top of test files
...
These modules are safe to import and this better follows PEP 8.
From https://www.python.org/dev/peps/pep-0008/#imports
> Imports are always put at the top of the file, just after any module
> comments and docstrings, and before module globals and constants.
2020-02-17 10:49:27 -08:00
Hugo
38bf862185
Replace PillowTestCase.assert_warning with pytest.warns
2020-02-03 11:11:32 +02:00
Hugo
a4bf9fa036
Convert most PillowTestCase methods to pytest
2020-02-02 12:26:01 +02:00
Andrew Murray
be44f0d992
Catch SGI buffer overruns
2020-01-02 15:24:36 +11:00
Andrew Murray
8f0c8f7311
Catch PCX P mode buffer overrun
2020-01-02 15:24:16 +11:00
Andrew Murray
c40bc25847
Catch FLI buffer overrun
2020-01-02 15:23:36 +11:00
Andrew Murray
fedb0407b4
Raise ValueError for io.StringIO in Image.open
2019-12-26 18:53:06 +11:00
Andrew Murray
c0048ad7de
Use context managers
2019-11-26 07:03:23 +11:00