Commit Graph

8203 Commits

Author SHA1 Message Date
Hugo
4ff47705a7 Fix Flake8 2019-03-07 22:59:12 +11:00
Hugo
2dcf6cafb2 Fix Flake8 2019-03-07 22:59:12 +11:00
Glenn Maynard
87e54b47ab GIF: Fix the previous frame not always being decoded in _seek.
_seek checked whether self.im is None, but if we've decoded a frame
and then seeked back to 0, self.im will be set to the previously
decoded frame.  Instead, check if self.tile has data, which means
_seek set up a tile to decode and it hasn't been decoded yet.
2019-03-07 22:59:12 +11:00
Glenn Maynard
b5806c7e15 GIF: Clear to transparency rather than background if available.
Background dispose should prefer the transparency color over the
background color, if there is one.  This matches other decoders
and makes transparent_dispose.gif decode correctly.
2019-03-07 22:59:12 +11:00
Glenn Maynard
df10a72000 GIF: Clear the buffer to the correct initial color before decoding frame 0.
This ensures that transparent pixels in the first frame data clear to
transparency and not to some previously decoded frame.
2019-03-07 22:59:12 +11:00
Glenn Maynard
68b844de74 GIF: Handle GIF transparency in the decoder.
Remove the special case for disposal_method == 1 and handle GIF
transparency by telling the decoder the transparent index.
2019-03-07 22:59:12 +11:00
Glenn Maynard
35c6ebd750 GIF: Support transparency in the native decoder.
Allow the transparency index to be passed to the native decoder.  If not
-1, pixels with this index will be left at their previous value.

This only adds the decoder support and isn't active yet.
2019-03-07 22:56:45 +11:00
Glenn Maynard
e44f567780 Add a test for an image that works with other GIF decoders.
This test is fixed by the next commits.
2019-03-07 22:56:45 +11:00
Hugo
6c38329c49
Merge pull request #3700 from radarhere/show
Updated list of Unix utilities used to show an image
2019-03-07 09:01:11 +02:00
Andrew Murray
b29365e8a0 Updated list of Unix utilities used to show an image [ci skip] 2019-03-07 15:24:27 +11:00
Andrew Murray
9ce09bfc85
Merge pull request #3696 from hugovk/update-docs
Update docs: macOS saves to a temp PNG before showing
2019-03-07 13:57:20 +11:00
Hugo
2edab165a1 Since #2527, macOS saves to a temp PNG before showing 2019-03-06 15:57:58 +02:00
Hugo
8194677516
Merge pull request #3670 from hugovk/add-azure
Add Azure Pipelines CI
2019-03-06 09:20:46 +02:00
Hugo
975fccafc7
Merge pull request #3688 from radarhere/mime
Add PPM mime types
2019-03-05 19:04:11 +02:00
Hugo
353d2a34ed
Update src/PIL/PpmImagePlugin.py
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-03-06 00:01:56 +11:00
Andrew Murray
4be51c46eb Added mime types 2019-03-04 18:17:12 +11:00
Andrew Murray
0e9e3dd304 Update CHANGES.rst [ci skip] 2019-03-03 21:48:00 +11:00
Andrew Murray
6b91f8c12d
Merge pull request #3682 from hugovk/deprecate-python2.7
Document Python 2.7 will be dropped on 2020-01-01
2019-03-03 21:42:37 +11:00
Hugo
571aca6610
Merge pull request #3685 from radarhere/file
Renamed file variable
2019-03-03 10:15:33 +02:00
Hugo
28f695db23
Merge pull request #3686 from radarhere/releasing
Use pillow-wheels update script
2019-03-03 10:14:43 +02:00
Andrew Murray
525eaf7389 Renamed file variable 2019-03-03 13:02:00 +11:00
Andrew Murray
e8fedc8589 Use pillow-wheels update script [ci skip] 2019-03-03 12:56:30 +11:00
Hugo
30965818af
Merge pull request #3684 from fchapoton/patch-1
Use the already imported io
2019-03-02 23:38:00 +02:00
Frédéric Chapoton
e514fbbbb1
use the already import io
instead of importing again from io (lgtm suggestion)
2019-03-02 21:19:57 +01:00
Hugo
f77bb0a15a Document Python 2.7 will be dropped in Pillow 7.x 2019-03-02 20:27:54 +02:00
Hugo
e96e2791cb Fix RST warning: 'Unknown target name' 2019-03-02 20:27:35 +02:00
Hugo
5f1b6bf752 Document Python 2.7 will be dropped on 2020-01-01 2019-03-02 20:18:52 +02:00
Hugo
b84ab5223d
Merge pull request #3680 from jdufresne/isinstance
Merge multiple isinstance() calls to one
2019-03-02 19:25:47 +02:00
Hugo
e721c2b07e
Merge pull request #3679 from radarhere/version
Document removal of VERSION
2019-03-02 18:32:35 +02:00
Jon Dufresne
9296e4f3a2 Merge multiple isinstance() calls to one 2019-03-02 08:24:08 -08:00
Andrew Murray
c1150a2d0f Document removal of VERSION (#3624) [ci skip] 2019-03-02 18:22:34 +11:00
Andrew Murray
95f77ef54a Update CHANGES.rst [ci skip] 2019-03-02 12:02:35 +11:00
Andrew Murray
57807e9ce2
Merge pull request #3624 from hugovk/rm-VERSION
Remove deprecated VERSION
2019-03-02 11:47:59 +11:00
Hugo
17bf2a3cbb
Update CHANGES.rst 2019-02-27 23:39:41 +02:00
Hugo
df6d429789
Merge pull request #3580 from jdufresne/bytes-warning
Fix 'BytesWarning: Comparison between bytes and string' in PdfDict
2019-02-27 23:38:45 +02:00
Hugo
d9f5f44799
Merge pull request #3632 from radarhere/thumbnail
Do not resize in Image.thumbnail if already the destination size
2019-02-27 23:37:20 +02:00
Hugo
b75210d824
Merge pull request #3572 from jdufresne/seek-constants
Replace .seek() magic numbers with io.SEEK_* constants
2019-02-27 23:30:27 +02:00
Hugo
2e374cf1ad
Merge pull request #3568 from jdufresne/isatty-bool
Make ContainerIO.isatty() return a bool, not int
2019-02-27 23:28:51 +02:00
Hugo
2f5f80f47e
Merge pull request #3563 from radarhere/transpose
Added support for I;16 modes for more transpose operations
2019-02-27 23:22:52 +02:00
Hugo
c31e00f112 Add Docker builds to Azure Pipelines 2019-02-24 18:00:23 +02:00
Hugo
b3151a9a09 Fix check-manifest 2019-02-24 18:00:09 +02:00
Hugo
409e810924 Lint with tox, like in Travis CI 2019-02-24 18:00:09 +02:00
Hugo
03fc6c05e8 Remove test jobs, keep lint 2019-02-24 18:00:09 +02:00
Hugo
1f6cc7a9a4 Trigger for all branches 2019-02-24 18:00:08 +02:00
Hugo
ac14c9d987 Add Azure Pipelines config from another project 2019-02-24 18:00:08 +02:00
Hugo
d167f9e0bd
Merge pull request #3669 from radarhere/typo
Fixed typo
2019-02-21 18:24:15 +02:00
Andrew Murray
e9fd0192fa Update CHANGES.rst [ci skip] 2019-02-21 19:25:27 +11:00
Andrew Murray
5d9898b686
Merge pull request #3655 from hugovk/deprecate-eol-qt
Deprecate support for PyQt4 and PySide
2019-02-21 19:22:34 +11:00
Hugo
cf08e21141
Merge pull request #3667 from radarhere/tifftags
Use constants for TIFF tag types
2019-02-20 22:29:21 +02:00
Hugo
f6cef9a151
Merge pull request #3666 from radarhere/import
Restored required import
2019-02-20 13:56:29 +02:00