Quentin Schulz
9bbba06129
src: PIL: JpegImagePlugin.py: make -1 and keep subsamplings identical for save
...
Make the -1 subsampling behave like "keep" for the save method.
The doc claims that -1 is equivalent to keep. It is actually equivalent
to 4:2:0 for some reason.
Note that -1 was representing both the -1 subsampling and the absence of
it. To persist the current behavior which is compatible with multiple
input file formats other than JPEG (which is not the case of the
subsampling parameter), make the absence of subsampling parameter equal
to -2.
get_sampling() remains unchanged since it is a public API.
Note that subsampling can be -1 and -2 in some cases, both results in an
image with a subsampling of 4:2:0.
Also removing faulty test case since subsampling -1 cannot be used on a
generated image but only JPEG file format.
Signed-off-by: Quentin Schulz <foss@0leil.net>
2020-04-20 21:51:30 +02:00
Andrew Murray
a0d8e550ec
Updated CHANGES.rst [ci skip]
2020-04-18 08:50:52 +10:00
Hugo van Kemenade
f83f19788b
Merge pull request #4552 from radarhere/animation
...
Simplified animation code
2020-04-17 19:30:04 +03:00
Hugo van Kemenade
ddebe27eed
Merge pull request #4565 from radarhere/tiff_pickle
...
Fixed bug when unpickling TIFF images
2020-04-17 19:03:02 +03:00
Andrew Murray
4a909b97e3
Merge pull request #4564 from radarhere/default_arguments
...
Removed default arguments from pickle test helper functions
2020-04-17 22:47:08 +10:00
Andrew Murray
9956a6c777
Fixed bug when unpickling TIFF images
2020-04-17 22:13:14 +10:00
Andrew Murray
574b0ee315
Removed initial seek
2020-04-17 22:05:38 +10:00
Andrew Murray
03b5ffbd23
Use common _seek_check method
2020-04-17 22:05:25 +10:00
Andrew Murray
0b33a87b0d
Replaced property methods for n_frames and is_animated with normal properties
2020-04-17 22:00:21 +10:00
Andrew Murray
76d96b6383
Removed default arguments from helper functions
2020-04-17 21:57:11 +10:00
Hugo van Kemenade
529e113505
Merge pull request #4561 from hugovk/fix-webp-pickle
...
Fix pickling WebP
2020-04-17 14:48:50 +03:00
Hugo van Kemenade
9963521b16
Merge pull request #49 from radarhere/fix-webp-pickle
...
Initialise __loaded = 0, removed initialisation of __physical_frame
2020-04-17 13:43:15 +03:00
Andrew Murray
e52b8cefe1
Skip test if webp is not available
2020-04-17 20:08:10 +10:00
Andrew Murray
986c55ff64
Initialise __loaded = 0, removed initialisation of __physical_frame
2020-04-17 19:15:05 +10:00
Andrew Murray
e4fa234340
Merge pull request #4563 from radarhere/faster_error
...
Throw image loading error faster
2020-04-17 19:07:03 +10:00
Andrew Murray
fe8225732a
Throw image loading error faster
2020-04-17 18:29:45 +10:00
Hugo
94751da23e
Initialise __physical_frame = 0 and add pickle roundtrip tell test
2020-04-17 11:21:57 +03:00
Hugo van Kemenade
f589f8689f
Initialise __logical_frame = 0 so tell() == 0 when unpickled
...
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-04-17 11:20:38 +03:00
Andrew Murray
49e49d3cfc
Merge pull request #4562 from hugovk/gha-ci-true
...
GitHub Actions now sets CI=true
2020-04-17 07:58:51 +10:00
Hugo
654229d1b9
GitHub Actions now sets CI=true
2020-04-16 20:42:29 +03:00
Hugo
913e79f010
Test the modes
2020-04-16 15:52:10 +03:00
Hugo
5529aba441
Skip webp test when webp not available
2020-04-16 12:56:12 +03:00
Hugo
2e6ab7c669
Fix pickling webp
2020-04-16 11:46:34 +03:00
Hugo
cdf3c98103
Add failing test for pickling webp
2020-04-16 11:45:12 +03:00
Hugo
d62b9098dd
Refactor other tests into test_pickle_image
2020-04-16 11:44:28 +03:00
Hugo
53a85f2a69
Refactor test_pickle_image to use pytest.mark.parametrize
2020-04-16 11:31:28 +03:00
Hugo van Kemenade
97280a045c
Merge pull request #4548 from radarhere/multiline_text
...
Added multiline text example
2020-04-12 09:29:54 +03:00
Andrew Murray
b2f187c4ec
Added multiline text example [ci skip]
2020-04-12 15:11:29 +10:00
Hugo van Kemenade
27e8592298
Merge pull request #4546 from radarhere/exif
...
Document getexif
2020-04-11 15:01:52 +03:00
Andrew Murray
417cbd1557
Document getexif [ci skip]
2020-04-11 18:01:13 +10:00
Hugo van Kemenade
0ee089be8f
Merge pull request #4545 from radarhere/pypy
...
Updated PyPy to 7.3.1
2020-04-11 07:35:17 +03:00
Andrew Murray
5427878ed1
Updated PyPy to 7.3.1
2020-04-11 10:50:33 +10:00
Andrew Murray
3bb39c73dd
Merge pull request #4536 from hugovk/oserror
...
Replace IOError and WindowsError aliases with OSError
2020-04-10 20:30:23 +10:00
Andrew Murray
29147e7fad
Highlighted errors [ci skip]
...
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-04-10 12:57:29 +03:00
Andrew Murray
d8213a245d
ImageFile.raise_ioerror is now deprecated [ci skip]
2020-04-10 12:57:29 +03:00
Andrew Murray
7bb51a4aca
Raise DeprecationWarning on raise_ioerror
2020-04-10 12:57:29 +03:00
Hugo
dda6145fce
Since Python 3.3 IOError and WindowsError have been merged into OSError
2020-04-10 12:57:29 +03:00
Hugo van Kemenade
caeae8f36b
Merge pull request #4542 from radarhere/success
...
Removed success conditions
2020-04-10 08:11:03 +03:00
Andrew Murray
41799985e1
Removed success conditions
2020-04-10 14:18:42 +10:00
Andrew Murray
47b8cea334
Merge pull request #4524 from hugovk/gha-doccheck
...
GHA: Check docs
2020-04-10 11:37:00 +10:00
Andrew Murray
41b554bc56
Merge pull request #4538 from hugovk/update-7.1.0-release-notes
...
Update 7.1.0 release notes with CVEs
2020-04-10 11:23:31 +10:00
Andrew Murray
a8a4b9bfdb
Merge pull request #4522 from hugovk/release-updates
...
Update release process
2020-04-07 18:08:04 +10:00
Hugo
3f2205d4eb
Update release notes with CVEs [CI skip]
2020-04-07 10:31:41 +03:00
Hugo
595caf31fc
Also push commits
2020-04-07 07:31:15 +10:00
Hugo
86ef29efd6
Check GHA and AppVeyor as well as Travis CI
2020-04-07 07:31:15 +10:00
Hugo
54f1ed6710
Ensure Python 3's pip to install requirements
2020-04-07 07:31:15 +10:00
Hugo
c87c1f3327
Only doccheck on Ubuntu/3.8
2020-04-06 21:19:18 +03:00
Hugo
f3d9377238
Revert "Only check docs on Travis"
...
This reverts commit fbb14f67a3
.
2020-04-06 21:19:18 +03:00
Hugo van Kemenade
fb41422a3e
Merge pull request #4533 from radarhere/js
...
Updated deprecated method
2020-04-06 21:04:45 +03:00
Hugo van Kemenade
3052874e80
Merge pull request #4534 from radarhere/retry
...
Retry on apt-get update problems
2020-04-06 18:58:35 +03:00