Commit Graph

1491 Commits

Author SHA1 Message Date
Hugo
961c341c20 Add release notes for #3907 PcfFontFile charset encodings 2020-04-01 09:41:35 +03:00
nulano
0b73e615d4 update install docs and release notes [ci skip] 2020-04-01 02:26:14 +02:00
Hugo van Kemenade
f27873a888
Merge pull request #4243 from pmrowla/apng
Add APNG support
2020-04-01 00:23:57 +03:00
Hugo van Kemenade
b5cf165f9e
Merge pull request #4260 from nulano/imagegrab_xcb
ImageGrab.grab() for Linux with XCB
2020-03-31 23:03:21 +03:00
Hugo van Kemenade
16e1d6a048
Merge pull request #4494 from hugovk/re-add-PILLOW_VERSION
Re-add deprecated PILLOW_VERSION to give projects more time to upgrade
2020-03-31 22:58:23 +03:00
Blaine Bublitz
137566e018 Update Tidelift UTM params [ci skip] 2020-03-31 10:25:01 -07:00
Hugo van Kemenade
761edafed8
Merge branch 'master' into re-add-PILLOW_VERSION 2020-03-31 12:07:14 +03:00
Andrew Murray
b700edfeb5
Changed capitalisation [ci skip]
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-03-31 19:18:45 +11:00
Andrew Murray
a1eaba7689 Documented new channel operations [ci skip] 2020-03-31 18:42:06 +11:00
Hugo van Kemenade
c6115c1ceb
Merge pull request #4230 from dwastberg/new_chops
Added three new channel operations
2020-03-31 10:24:44 +03:00
Hugo
afa758eb33 Re-add deprecated PILLOW_VERSION to give projects more time to upgrade 2020-03-29 18:36:37 +03:00
Andrew Murray
790ff223fc Updated versions 2020-03-24 19:52:27 +11:00
nulano
0bcc7be89b xcb screengrab docs and fixes 2020-03-24 19:46:40 +11:00
Andrew Murray
80c2ab7581 install using Python 3 [ci skip] 2020-03-18 07:54:54 +11:00
Andrew Murray
646b36d781 Updated CI target Python versions [ci skip] 2020-03-16 21:38:26 +11:00
Andrew Murray
9f61be4c72
Merge branch 'master' into apng 2020-03-09 23:29:40 +11:00
Andrew Murray
dc0d1c9bee Invoke pip using python3 [ci skip] 2020-03-09 22:43:35 +11:00
Andrew Murray
846662e282
Merge pull request #4459 from hugovk/python3-m-pip-install
Docs: Avoid ambiguity by explicitly invoking python3
2020-03-09 22:43:15 +11:00
Andrew Murray
e41cfade29 Add JPEG comment to info dictionary 2020-03-07 06:57:29 +11:00
Hugo van Kemenade
0f7ed2d35f
Merge pull request #4435 from radarhere/close_images
Close exclusively opened images
2020-03-06 00:27:46 +02:00
Hugo van Kemenade
3b30b88c7f
Merge pull request #4454 from radarhere/bbox
If present, only use alpha channel for bounding box
2020-03-05 12:38:52 +02:00
Andrew Murray
b888354ce9 Document getbbox change for images with alpha [ci skip] 2020-03-05 21:25:39 +11:00
Hugo
b028051dd2 Avoid ambiguity by explicitly invoking python3 2020-03-01 20:03:16 +02:00
Andrew Murray
792b1c812b Corrected version number [ci skip] 2020-03-01 14:51:54 +11:00
Hugo van Kemenade
64a9e0c660
Merge branch 'master' into apng 2020-02-29 17:40:17 +02:00
Andrew Murray
04f7c75466 Use context manager when opening images [ci skip] 2020-02-29 10:29:44 +11:00
Andrew Murray
ce23acee89 Added 7.1.0 release notes 2020-02-25 21:22:05 +11:00
Hugo van Kemenade
3c995fd173
Merge pull request #4440 from radarhere/jpeg_quality
Allow saving of zero quality JPEG images
2020-02-25 12:02:53 +02:00
Peter Rowlands
9b72f0513c Adjust is_animated behavior
- Make is_animated APNG behavior consistent with other Pillow formats
- is_animated will be true when n_frames is greater than 1 (for APNG
  this depends on animation frame count + presence or absence of a
  default image)
2020-02-23 15:14:06 +11:00
Peter Rowlands
dcc3f41fa1 Add release notes 2020-02-23 15:14:06 +11:00
Peter Rowlands
3a254701f6 Cleanup documentation
- Add changes requested by hugovk
2020-02-23 15:14:06 +11:00
Peter Rowlands (변기호)
0b536fb599 fix documentation review issue
[ci skip]

Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-02-23 15:14:06 +11:00
Peter Rowlands
916b2e1b74 Document APNG support 2020-02-23 15:14:06 +11:00
Andrew Murray
f76ef9798f Changed docs badges to be closer to README badges [ci skip] 2020-02-22 08:37:19 +11:00
Andrew Murray
a99b9d63f4 Document quality parameter change when saving JPEGs [ci skip] 2020-02-21 22:17:56 +11:00
Andrew Murray
a8c0794107 Allow saving of zero quality JPEG images 2020-02-21 22:05:44 +11:00
Dag Wästberg
2e02500fa6 change function names to snake_case 2020-02-19 19:38:53 +11:00
Dag Wästberg
13c1b7070d add Overlay chop 2020-02-19 19:24:36 +11:00
Dag Wästberg
c8a46ef387 update docs 2020-02-19 19:23:09 +11:00
Andrew Murray
5bb18c08ff Recommend upgrading Pillow [ci skip] 2020-02-19 18:59:28 +11:00
Hugo
f4b1c772dc Recommend upgrading pip and Pillow 2020-02-18 21:48:52 +02:00
Hugo van Kemenade
0e993c4740
Merge pull request #4334 from radarhere/outline_width
Allow explicit zero width to hide outline
2020-02-15 14:30:12 +02:00
Andrew Murray
8e7010d9ae Changed example plugin to work in Python 3 [ci skip] 2020-02-09 15:34:14 +11:00
Hugo van Kemenade
28a4982950
Merge pull request #4412 from radarhere/redirect
Updated redirected URL
2020-02-08 06:57:49 +02:00
Andrew Murray
af4bc0a1f6 Updated redirected URL 2020-02-08 11:54:57 +11:00
Andrew Murray
a8d4aca98d Removed mentions of Python 2 2020-02-08 11:45:51 +11:00
Andrew Murray
81ea2b32af
Merge pull request #4406 from radarhere/python2
Unlike PIL, Pillow does not support Python 2
2020-02-07 19:18:03 +11:00
Andrew Murray
bbea71419c Updated macOS tested Pillow versions [ci skip] 2020-02-07 19:03:35 +11:00
Andrew Murray
11023afd56 Updated macOS CI target [ci skip] 2020-02-07 19:01:00 +11:00
Andrew Murray
124e30e432
Merge pull request #4397 from hugovk/speedup-linkcheck
Docs: Speed up linkcheck by checking in parallel
2020-02-06 21:06:41 +11:00
Andrew Murray
db970acfa5 Grammar fix [ci skip] 2020-02-06 20:10:34 +11:00
Andrew Murray
50ce9bac55 Pillow no longer supports Python 2 [ci skip] 2020-02-05 21:06:09 +11:00
Hugo
2dfcfbfaa0 Speed up linkcheck by checking in parallel with 'cpu-count' processes 2020-01-29 17:11:59 +02:00
Andrew Murray
1f58028173 Use BytesIO instead of StringIO [ci skip] 2020-01-21 23:21:57 +11:00
Hugo
9f9d4b4379 Add favicon to Read the Docs 2020-01-20 17:22:10 +02:00
Andrew Murray
1c102fd040 Updated spacing defaults [ci skip] 2020-01-18 10:26:20 +11:00
Andrew Murray
6aa4e93e2d Updated tested libtiff versions [ci skip] 2020-01-13 21:06:32 +11:00
Andrew Murray
b1b20d81f4 Updated libjpeg to 9d 2020-01-12 22:43:39 +11:00
Andrew Murray
16b7c80e7d Added Pillow 6.2.2 to version table [ci skip] 2020-01-11 14:11:22 +11:00
Andrew Murray
56f30ef792 Allow explicit zero width to hide outline 2020-01-08 21:55:15 +11:00
Hugo
81126d1470 Add assigned CVE numbers 2020-01-03 21:33:10 +02:00
Hugo van Kemenade
2545e48079
Fix typo 2020-01-02 21:51:33 +02:00
Andrew Murray
1cecf08d16 Release notes for 6.2.2 2020-01-02 16:19:26 +11:00
Andrew Murray
afc93b0d76 Added release notes [ci skip] 2020-01-02 15:25:36 +11:00
Andrew Murray
2f508d4467 Added security notes [ci skip] 2020-01-02 09:32:13 +11:00
Andrew Murray
1ab85c885e Updated copyright year 2020-01-01 12:58:36 +11:00
Andrew Murray
d85ad58cb9 Python 2.7 support has been removed [ci skip] 2019-12-31 23:12:01 +11:00
Andrew Murray
4a0014ccee Updated libimagequant to 2.12.6 2019-12-31 08:43:20 +11:00
Alexander Karpinsky
c3232e5093
Merge pull request #4273 from uploadcare/reduce-in-resize
Reduce for resize
2019-12-30 17:29:58 +03:00
Andrew Murray
aeaaf29abe Python 2.7 is no longer supported [ci skip] 2019-12-30 22:30:21 +11:00
Alexander
c74c20eb9f Merge branch 'master' into reduce-in-resize
# Conflicts:
#	docs/releasenotes/7.0.0.rst
2019-12-30 03:24:38 +03:00
Alexander
34029e9af4 texts fixes 2019-12-30 03:23:30 +03:00
Andrew Murray
2a0653ee81
Merge pull request #4311 from radarhere/wmf
Allow loading of WMF images at a given DPI
2019-12-30 10:24:44 +11:00
Andrew Murray
feec1bbcb2 Updated WMF documentation [ci skip] 2019-12-30 10:12:37 +11:00
Andrew Murray
2b96dcffe1 Removed TODO from release notes [ci skip] 2019-12-30 09:18:03 +11:00
Alexander
1bd9b16e97 wording 2019-12-27 15:35:17 +03:00
Alexander
222c2f6978 Merge branch 'master' into reduce-in-resize 2019-12-27 15:13:19 +03:00
Andrew Murray
e51b7fa2a2 Added CentOS 8 2019-12-26 18:48:18 +11:00
Alexander
d719aafecb Merge branch 'reduce' into reduce-in-resize
# Conflicts:
#	docs/releasenotes/7.0.0.rst
2019-12-25 15:45:17 +03:00
Alexander
9c2b058483 update release notes [ci skip] 2019-12-25 15:32:49 +03:00
Alexander Karpinsky
d991cd9a9a
Merge pull request #60 from radarhere/box-in-thumbnail
Updated wording
2019-12-25 15:21:24 +03:00
Andrew Murray
c35fb6fb67
Merge branch 'master' into box-in-thumbnail 2019-12-24 18:18:34 +11:00
Andrew Murray
663fea308b Updated wording [ci skip] 2019-12-24 15:06:47 +11:00
Hugo
6a43ea86ea Merge remote-tracking branch 'upstream/master' into doctest-turn-warnings-into-errors 2019-12-21 15:52:59 +02:00
Hugo
d025fbe16d Install TkInter for Python 3, not 2 2019-12-21 15:48:00 +02:00
Hugo van Kemenade
b3547dc2c0
--keep-going to show all of the problems
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-12-21 13:46:38 +02:00
Hugo
6a256a8396 make doccheck: turn warnings into errors 2019-12-21 13:11:12 +02:00
Alexander
532eca3c20 Merge branch 'master' into box-in-thumbnail
# Conflicts:
#	docs/releasenotes/7.0.0.rst
2019-12-21 03:18:23 +03:00
Alexander
59f8eeb290 add release notes 2019-12-21 03:16:42 +03:00
Andrew Murray
7a4a408802
Merge pull request #4214 from hugovk/python-m-pip-install
Recommend upgrading pip before Pillow, and use python -m pip
2019-12-21 10:52:59 +11:00
Alexander
945b4e9c82 add references, fix release notes syntax 2019-12-21 00:25:52 +03:00
Alexander
1275b10e6f update release notes 2019-12-20 23:21:43 +03:00
Alexander
8181aed77f Merge branch 'reduce' into reduce-in-resize
# Conflicts:
#	docs/releasenotes/7.0.0.rst
#	src/PIL/Image.py
2019-12-20 20:27:11 +03:00
Alexander
b112e55070 Merge branch 'master' into box-in-thumbnail
# Conflicts:
#	docs/releasenotes/7.0.0.rst
2019-12-19 16:36:37 +03:00
Alexander Karpinsky
6d75a673b6
Merge pull request #4255 from uploadcare/default-resample-filter
Change default resize resampling filter from NEAREST to BICUBIC
2019-12-19 16:33:34 +03:00
Alexander
cdd1253211 notes fixes
skip-checks: true
2019-12-18 01:09:54 +03:00
Alexander
4da9858709 change default resampling filter for ImageOps.pad(), ImageOps.scale() and ImageOps.fit() 2019-12-17 18:15:02 +03:00
Andrew Murray
d3c26fac97
Merge branch 'master' into python-m-pip-install 2019-12-17 20:08:14 +11:00
Andrew Murray
ba81712ec8 Added release notes for #4256 [ci skip] 2019-12-17 19:01:24 +11:00
Alexander
a027897f74 Merge branch 'master' into box-in-thumbnail
# Conflicts:
#	Tests/test_image_thumbnail.py
2019-12-17 00:42:29 +03:00
Hugo
7b4ae104f0 Fix malformed table 2019-12-16 15:07:56 +02:00
Hugo van Kemenade
cb768d0bff
Merge pull request #4209 from daquexian/patch-1
Update the out-dated termux.sh
2019-12-12 08:03:57 +02:00
nulano
306d6ccfed update tested versions table [ci skip] 2019-12-09 22:48:57 +01:00
Alexander
ac92836e81 Change default resize resampling filter 2019-12-07 18:08:19 +03:00
Hugo van Kemenade
995c863200
Merge pull request #4253 from radarhere/python_versions
Invert Python version support table
2019-12-07 14:29:36 +02:00
Andrew Murray
5dcad52a5d
Merge branch 'master' into python-m-pip-install 2019-12-07 23:28:39 +11:00
Andrew Murray
9a9092773f Removed references to Python 2.7 [ci skip] 2019-12-07 22:13:29 +11:00
Andrew Murray
4b863b3cd2 Invert Python version support table [ci skip] 2019-12-07 21:57:57 +11:00
Andrew Murray
f663079a13 Removed prompts [ci skip] 2019-12-07 09:26:48 +11:00
Hugo
578d9ec016 Update macOS to reflect GitHub Actions 2019-12-07 00:20:41 +02:00
Alexander
4e092153fc add release notes 2019-11-30 18:17:10 +03:00
Andrew Murray
2537e8d23e Updated Termux command [ci skip] 2019-11-30 07:52:31 +11:00
Hugo van Kemenade
39a8108e34
Docs: remove 2.7 from CI targets
Removed in https://github.com/python-pillow/Pillow/pull/4133 for https://github.com/python-pillow/Pillow/issues/3642. 

Also update macOS to reflect GitHub Actions.
2019-11-22 07:39:38 +02:00
Hugo van Kemenade
a949d7882e
Merge branch 'master' into rm-2.7 2019-11-20 10:26:55 +02:00
Hugo
a27e676b11 Recommend upgrading pip before Pillow, and use python -m pip 2019-11-19 14:47:15 +02:00
Andrew Murray
699183c5dc
Highlighted classes
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2019-11-19 21:41:40 +11:00
Andrew Murray
40f891dfd7 Added UnidentifiedImageError 2019-11-19 21:20:02 +11:00
Hugo
e5486b40f8 Merge remote-tracking branch 'upstream/master' into rm-2.7 2019-11-18 13:56:42 +02:00
Hugo
f273da1b3e Remove deprecated __version__ from plugins 2019-11-05 22:06:57 +02:00
Hugo
15ee91761b Remove deprecated __version__ from plugins 2019-11-05 22:04:04 +02:00
Hugo
09e48ae768 Remove deprecated __version__ from plugins 2019-11-05 17:01:03 +02:00
Hugo van Kemenade
5006401d0b
Merge branch 'master' into rm-2.7 2019-11-03 22:48:26 +02:00
Hugo van Kemenade
690bd430b0
Update docs/releasenotes/7.0.0.rst
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-11-02 11:06:58 +02:00
Hugo van Kemenade
a3d16dd40a
Update docs/releasenotes/7.0.0.rst
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-11-02 08:40:40 +02:00
Hugo van Kemenade
2058e00e3e
Update docs/deprecations.rst
Co-Authored-By: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2019-11-02 08:40:29 +02:00
Hugo
c9c02c513b Update docs for 7.0.0 2019-11-01 13:44:49 +02:00
Hugo
cc63f66575 Merge remote-tracking branch 'upstream/master' into rm-2.7 2019-11-01 13:22:56 +02:00
Hugo van Kemenade
2cf510e596
Improve handling of file resources (#3577)
Improve handling of file resources
2019-11-01 12:07:53 +02:00
Hugo
37f492cbbc Add support for Fedora 31 2019-10-31 12:35:26 +02:00
Andrew Murray
b8023838cc Added GHA [ci skip] 2019-10-29 19:07:45 +11:00
Hugo
ef0fa7a651 Remove soon-EOL Fedora 29 2019-10-26 17:10:07 +11:00
Hugo van Kemenade
40133cfc74
Merge branch 'master' into rm-2.7 2019-10-26 09:07:44 +03:00
Hugo
a80a45219f Pillow 6.2.1 is the last to support Python 2.7 2019-10-20 23:06:22 +03:00
Hugo
6f3464e1cb Add release notes for Pillow 6.2.1 2019-10-20 16:31:09 +03:00
Andrew Murray
aaf9720c58 Updated CI target Python versions for macOS [ci skip] 2019-10-20 21:00:26 +11:00
Hugo
2ab518edcb Add support for Python 3.8 2019-10-15 12:44:21 +03:00
Jon Dufresne
4cd4adddc3 Improve handling of file resources
Follow Python's file object semantics. User code is responsible for
closing resources (usually through a context manager) in a deterministic
way.

To achieve this, remove __del__ functions. These functions used to
closed open file handlers in an attempt to silence Python
ResourceWarnings. However, using __del__ has the following drawbacks:

- __del__ isn't called until the object's reference count reaches 0.
  Therefore, resource handlers remain open or in use longer than
  necessary.

- The __del__ method isn't guaranteed to execute on system exit. See the
  Python documentation:

  https://docs.python.org/3/reference/datamodel.html#object.__del__

  > It is not guaranteed that __del__() methods are called for objects
  > that still exist when the interpreter exits.

- Exceptions that occur inside __del__ are ignored instead of raised.
  This has the potential of hiding bugs. This is also in the Python
  documentation:

  > Warning: Due to the precarious circumstances under which __del__()
  > methods are invoked, exceptions that occur during their execution
  > are ignored, and a warning is printed to sys.stderr instead.

Instead, always close resource handlers when they are no longer in use.
This will close the file handler at a specified point in the user's code
and not wait until the interpreter chooses to. It is always guaranteed
to run. And, if an exception occurs while closing the file handler, the
bug will not be ignored.

Now, when code receives a ResourceWarning, it will highlight an area
that is mishandling resources. It should not simply be silenced, but
fixed by closing resources with a context manager.

All warnings that were emitted during tests have been cleaned up. To
enable warnings, I passed the `-Wa` CLI option to Python. This exposed
some mishandling of resources in ImageFile.__init__() and
SpiderImagePlugin.loadImageSeries(), they too were fixed.
2019-10-12 08:27:17 -07:00
Hugo
23fa3c6979 Remove outdated OS scripts, point docs to Dockerfiles 2019-10-12 14:16:10 +03:00
Andrew Murray
4140cd807b
Merge branch 'master' into rm-2.7 2019-10-12 18:03:58 +11:00
Andrew Murray
a8c07e3d5f Added orientation note [ci skip] 2019-10-11 22:40:31 +11:00
Hugo
0caa48b179 Remove redundant __future__ from docs
Co-Authored-By: Jon Dufresne <jon.dufresne@gmail.com>
2019-10-08 17:26:11 +03:00
Andrew Murray
fab0205abc Updated documentation [ci skip] 2019-10-08 21:12:15 +11:00
Hugo
538d9e2e5d Upgrade Python syntax with pyupgrade --py3-plus 2019-10-07 14:30:59 +03:00
Andrew Murray
e8cf9a6bc1
Merge pull request #4108 from hugovk/rm-deprecated-qt
Drop support for EOL PyQt4 and PySide
2019-10-07 12:35:56 +11:00
Hugo van Kemenade
ac563f77ad
Merge pull request #4118 from radarhere/backticks
Use double backticks
2019-10-06 12:03:49 +03:00
Andrew Murray
e0d67a1f9f Use double backticks [ci skip] 2019-10-06 14:39:10 +11:00
Andrew Murray
ecb3a30487 Clarified documentation [ci skip] 2019-10-06 13:52:58 +11:00
Andrew Murray
732eb7223f
Merge branch 'master' into rm-deprecated-qt 2019-10-06 13:35:38 +11:00
Andrew Murray
d6ae0a99a7 Removed deprecated setting of TIFF image sizes 2019-10-03 22:12:28 +10:00
Hugo van Kemenade
7821b34924
Merge branch 'master' into rm-deprecated-qt 2019-10-03 14:14:00 +03:00
Hugo
f898ccbaf8 Remove deprecated PILLOW_VERSION 2019-10-01 14:43:15 +03:00
Hugo
f0a87e25a4 Drop support for EOL PyQt4 and PySide 2019-09-30 17:58:31 +03:00
Andrew Murray
f85258a167 Documented #3950 [ci skip] 2019-09-28 16:43:54 +10:00
Hugo van Kemenade
310d2c9005
Add option to capture all monitors on Windows (#3950)
Add option to capture all monitors on Windows
2019-09-27 08:47:55 +03:00
nulano
3c311f5619 add version added [ci skip] 2019-09-27 00:58:32 +02:00
Andrew Murray
ffe1965b74 Documented #4086 [ci skip] 2019-09-26 19:30:32 +10:00
nulano
6a2d8f8da0 rename parameter, add note to docs 2019-09-20 17:35:08 +02:00
Andrew Murray
28f0940d59 Added example image [ci skip] 2019-09-15 06:06:28 +10:00
Andrew Murray
11c9e6c0dd Added release notes [ci skip] 2019-09-14 21:39:58 +10:00
Hugo
f792ab6c02 RST uses double backticks for code (MD uses 1) 2019-09-13 08:56:33 +03:00
Andrew Murray
da39d40342
Merge pull request #3978 from radarhere/stroke
Added text stroking
2019-09-06 19:14:49 +10:00
Hugo van Kemenade
97f6fc96f2
Merge pull request #4047 from radarhere/modes
Documented more limited support modes
2019-09-05 23:20:24 +03:00
Andrew Murray
5ad5be4a32 Reference Pillow not PIL [ci skip] 2019-09-06 06:13:12 +10:00
Andrew Murray
51457311de
Reference Pillow not PIL [ci skip]
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
2019-09-06 06:10:40 +10:00
Andrew Murray
2a7ad14172 Added more limited support modes [ci skip] 2019-09-05 20:10:43 +10:00
Andrew Murray
1c8aae3016 Added Tidelift Subscription link [ci skip] 2019-09-05 19:31:55 +10:00
Andrew Murray
92e80b8b49
Merge pull request #3993 from radarhere/libimagequant
Updated libimagequant to 2.12.5
2019-08-17 20:02:12 +10:00
nulano
fa6b80fddf add option to capture all monitors on Windows 2019-08-15 20:03:33 +10:00
Andrew Murray
0527efd593 Corrected documentation of TIFF saving arguments [ci skip] 2019-08-07 19:53:35 +10:00
Andrew Murray
a9f34f221b Changed MAX_CONCURRENCY description [ci skip] 2019-08-05 20:32:01 +10:00
Andrew Murray
4283683948 Corrected note syntax [ci skip] 2019-08-03 23:24:28 +10:00
Andrew Murray
fa2f27244c Updated libimagequant to 2.12.5 2019-07-29 19:32:12 +10:00
Andrew Murray
f93a5d0972 Added text stroking 2019-07-29 06:40:03 +10:00
Andrew Murray
dfed1424d1 Improved ImageFont documentation 2019-07-25 20:04:45 +10:00
Andrew Murray
d87593633a Update Linux prerequisite packages 2019-07-20 19:30:28 +10:00
Hugo van Kemenade
1ab5670eb1
Introduce isort to automate import ordering and formatting (#3954)
Introduce isort to automate import ordering and formatting
2019-07-16 23:02:31 +03:00
Andrew Murray
9bfbd56d1a Updated Alpine Python version 2019-07-10 06:54:59 +10:00
Andrew Murray
6f0c51fb4a Added Debian Buster 2019-07-10 06:54:54 +10:00
Hugo
1f4900e51f
Merge branch 'master' into unused-sidebar 2019-07-07 07:45:33 +03:00
Hugo
82ec19ed6d
Merge pull request #3955 from jdufresne/static
Remove empty, unused directory docs/_static
2019-07-07 07:40:40 +03:00
Jon Dufresne
388803006c Remove unused docs/_templates directory
The only file, sidebarhelp.html, applies to the sphinx-better-theme
which is unused and was removed in
02f3685b2d.
2019-07-06 17:27:06 -07:00
Jon Dufresne
8fac23b3df Clean up several Sphinx warnings
Appeared as:

    Pillow/docs/reference/ImageDraw.rst:137: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:164: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:177: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageDraw.rst:208: WARNING: Unexpected indentation.
    Pillow/docs/reference/ImageStat.rst:24: WARNING: Explicit markup ends without a blank line; unexpected unindent.
2019-07-06 17:12:09 -07:00
Jon Dufresne
d8594041b5 Remove empty, unused directory docs/_static 2019-07-06 16:37:57 -07:00
Jon Dufresne
d50445ff30 Introduce isort to automate import ordering and formatting
Similar to the recent adoption of Black. isort is a Python utility to
sort imports alphabetically and automatically separate into sections. By
using isort, contributors can quickly and automatically conform to the
projects style without thinking. Just let the tool do it.

Uses the configuration recommended by the Black to avoid conflicts of
style.

Rewrite TestImageQt.test_deprecated to no rely on import order.
2019-07-06 16:11:35 -07:00
Hugo
f10712f006
Merge branch 'master' into release-notes 2019-07-01 12:58:30 +03:00
Hugo
7855a6fc2f
Docs: Add deprecation of Image.__del__ (#3929)
Docs: Add deprecation of Image.__del__
2019-07-01 12:57:54 +03:00
Hugo
e62dcc3d48 Add #3886 to release notes and CHANGES 2019-07-01 12:20:08 +03:00
Hugo
a2919f98ff Add #3928 to release notes, and #3928 and #3929 to CHANGES 2019-07-01 10:05:57 +03:00
Hugo
c15383695b Deprecate Image.__del__ 2019-07-01 09:55:54 +03:00
Hugo
66241cacc1 Add release notes for #3608 and #3861 2019-07-01 09:11:09 +03:00
Hugo
469c0aeeed Deprecate Image.__del__ 2019-07-01 08:45:19 +03:00
Oliver Tonnhofer
2af4026201 Improve encoding of TIFF tags (#3861)
* Improve encoding of TIFF tags

- Pass tagtype from v2 directory to libtiff encoder, instead of
autodetecting type.
- Use explicit types. E.g. uint32_t for TIFF_LONG to fix issues on
platforms with 64bit longs.
- Add support for multiple values (arrays). Requires type in v2
directory and values must be passed as a tuple.
- Add support for signed types (e.g. TIFFTypes.TIFF_SIGNED_SHORT).

Co-authored-by: Andrew Murray <radarhere@users.noreply.github.com>
2019-06-30 21:48:19 +03:00
Andrew Murray
c994b783ec
Merge branch 'master' into tiff-jpeg-quality 2019-06-30 14:03:09 +10:00
Andrew Murray
9074eda608
Merge pull request #3778 from radarhere/all_frames
Added ImageSequence all_frames
2019-06-30 07:55:34 +10:00
Andrew Murray
d2fdb4818c
Fixed wording
Co-Authored-By: Hugo <hugovk@users.noreply.github.com>
2019-06-29 18:02:08 +10:00
Andrew Murray
1abcada1c5 Added release notes [ci skip] 2019-06-29 17:47:55 +10:00
Hugo
a0191dae1e
Documentation for Image module (#3776)
Documentation for Image module
2019-06-28 19:49:45 +03:00
Hugo
57e3af4afb Fix typo 2019-06-28 18:47:17 +03:00
Oliver Tonnhofer
2b7d8be536 tiff: add support for JPEG quality
Uses JPEGQUALITY pseudo-tag from libtiff.

Also changes the way tags are passed to PyImaging_LibTiffEncoderNew from
dict to list to ensure that COMPRESSION tag is added before JPEGQUALITY.
This is required as the COMPRESSION tag registers the JPEGQUALITY
pseudo-tag.
2019-06-26 06:33:54 +10:00
Oliver Tonnhofer
61add9d6b0 Improve encoding of TIFF tags
- Pass tagtype from v2 directory to libtiff encoder, instead of
autodetecting type.
- Use explicit types. E.g. uint32_t for TIFF_LONG to fix issues on
platforms with 64bit longs.
- Add support for multiple values (arrays). Requires type in v2
directory and values must be passed as a tuple.
- Add support for signed types (e.g. TIFFTypes.TIFF_SIGNED_SHORT).
2019-06-26 06:33:19 +10:00
Hugo
73884576d4 Some styling and wording 2019-06-24 11:04:13 +03:00
Hugo
72bf9f6529 Use the common test-suite image 2019-06-24 10:48:33 +03:00
Hugo
fd1d779ae1 Strip trailing whitespace 2019-06-24 10:45:53 +03:00
Hugo
c1b3adbd1b
Merge pull request #3910 from radarhere/xrgb
Changed bits value for XRGB unpackers
2019-06-22 10:24:24 +03:00
Hugo
f5cd8b4b0d
Merge pull request #3909 from hugovk/run-black
Format code with Black
2019-06-22 06:46:15 +03:00
Andrew Murray
0a73e31415 Added note about RGBX padding 2019-06-21 19:37:43 +10:00
Andrew Murray
dfa9e7aeff
Apply suggestions from code review [ci skip]
Co-Authored-By: Hugo <hugovk@users.noreply.github.com>
2019-06-20 20:31:57 +10:00
Andrew Murray
1d1edb8fc4 Added release notes for #3802 and #3856 [ci skip] 2019-06-20 20:01:43 +10:00
Hugo
1b99362f3d Merge remote-tracking branch 'upstream/master' into run-black 2019-06-19 09:29:28 +03:00
Andrew Murray
f33f4998b2 Renamed OS X reference to macOS [ci skip] 2019-06-15 08:02:28 +10:00
Hugo
471220093b Format with Black 2019-06-13 18:54:57 +03:00
Andrew Murray
231fe4d62a Revert "Merge pull request #3838 from radarhere/i_conversion"
This reverts commit 41f3e7c8bd, reversing
changes made to 2f84482871.
2019-06-11 19:28:31 +10:00
Hugo
6e22f6c9cc
Merge pull request #3889 from radarhere/libimagequant
Updated libimagequant to 2.12.3
2019-06-08 21:18:09 +03:00
Hugo
169961649d
Merge pull request #3848 from radarhere/pa
Improved palette handling for LA and PA modes
2019-06-05 22:32:44 +03:00
Hugo
41f3e7c8bd
Merge pull request #3838 from radarhere/i_conversion
Improved I mode conversion
2019-06-05 22:23:35 +03:00
Andrew Murray
e1df2118b3 Link method [ci skip] 2019-06-02 13:34:18 +10:00
Andrew Murray
a4d03bdf90 Updated libimagequant to 2.12.3 2019-05-27 19:23:00 +10:00
Andrew Murray
71a6cd513a Updated macOS tested Pillow versions [ci skip] 2019-05-27 19:22:37 +10:00
Andrew Murray
8be6609243 Added PA mode to docs [ci skip] 2019-05-18 20:41:59 +10:00
Andrew Murray
0678bfe084 Updated macOS CI target [ci skip] 2019-05-15 22:13:57 +10:00
Hugo
269c43d83b
Merge pull request #3846 from radarhere/doc
Documentation fixes
2019-05-12 09:55:52 +03:00
Andrew Murray
a258b8dcdc
Apply suggestions from code review [ci skip]
Co-Authored-By: Hugo <hugovk@users.noreply.github.com>
2019-05-09 19:05:06 +10:00
Andrew Murray
64eff66ee7 Updated pixel range documentation [ci skip] 2019-05-09 14:32:14 +10:00
Andrew Murray
110dd6236f Highlight function [ci skip] 2019-05-08 12:54:12 +10:00
Andrew Murray
d8c211ef07 Added release notes for #3808 and #3814 [ci skip] 2019-05-06 21:14:47 +10:00
Andrew Murray
f9f235ac2e Corrected use of function [ci skip] 2019-05-06 08:40:32 +10:00
Andrew Murray
38df9bef09 Added import [ci skip] 2019-05-06 08:38:43 +10:00
Hugo
b5703db0fa
CI: Add Fedora 30, remove Fedora 28 (#3821)
CI: Add Fedora 30, remove Fedora 28
2019-05-04 19:03:51 +03:00
Hugo
82d9ea5eac
Merge pull request #3808 from radarhere/imagegrab
Added option to include layered windows in ImageGrab.grab on Windows
2019-05-04 16:00:43 +03:00
Andrew Murray
1d67bf0539 Document pixel range [ci skip] 2019-05-04 16:11:16 +10:00
Hugo
c15dc4d7ca
Document format limitations of ImageStat.Stat.extrema (#3661)
Document format limitations of ImageStat.Stat.extrema
2019-05-03 22:14:14 +03:00
Hugo
1f179fab94 Docs: Update CI targets 2019-05-02 11:22:08 +03:00
Andrew Murray
70038bd71e Added option to include layered windows in ImageGrab.grab on Windows 2019-04-26 20:09:46 +10:00
Hugo
c23d4233cb
Merge pull request #3805 from radarhere/install_docs
Correct libimagequant installation requirements
2019-04-24 15:38:24 +03:00
Andrew Murray
31340bb3c6 Corrected names in documentation 2019-04-24 06:19:17 +10:00
Andrew Murray
16ef9e5746 Correct libimagequant installation requirements [ci skip] 2019-04-22 11:34:10 +10:00
Andrew Murray
0557ecbb3e Document class members automatically 2019-04-21 23:28:08 +10:00
Andrew Murray
93b96a6cb8 Improved documentation 2019-04-21 23:27:31 +10:00
Andrew Murray
af59955d04 Updated openjpeg to 2.3.1 2019-04-15 18:13:34 +10:00
Hugo
bf9592aac5 Add explicit removal version 2019-04-09 11:11:14 +03:00
abojja9
c4daa87415 Add documentation to Image module 2019-04-06 13:42:22 -07:00
Hugo
eafb394242 Drop support for EOL Ubuntu 14.04 (Trusty Tahr) 2019-04-01 16:34:18 +03:00
Andrew Murray
732a5357be Added release notes for #3687 [ci skip] 2019-04-01 22:32:09 +11:00
Andrew Murray
d31de47768 Added release notes [ci skip] 2019-04-01 21:16:52 +11:00
Andrew Murray
f707affbde
Merge pull request #3615 from hugovk/imagecms-deprecations
Add warnings to deprecated CMS profile attributes
2019-04-01 17:35:32 +11:00
Andrew Murray
7fd0a1493a Changed wording [ci skip] 2019-03-31 14:36:39 +11:00
Andrew Murray
0fd4750ba4
Merge pull request #3637 from hugovk/default-to-codecov
Docs: Link to Codecov rather than Coveralls
2019-03-31 14:01:30 +11:00
Andrew Murray
9699ac40c7 n_frames is not an info key [ci skip] 2019-03-31 12:44:39 +11:00
Andrew Murray
7a845ee2e7 Corrected seek documentation [ci skip] 2019-03-31 12:43:09 +11:00
Andrew Kuchling
7ca0c189e3 Various documentation fixes [ci skip]
* TIFF: describe num_frames and seek()/tell()
* Link methods to PIL.Image class instead of the Python file object
* It doesn't seem like the Spider plug-in actually has an 'nimages' attribute
* Fix markup for exception name
2019-03-31 12:14:53 +11:00
Andrew Murray
f238ab9654 Updated lcms tested versions [ci skip] 2019-03-29 08:32:36 +11:00
Hugo
a0a641516b
Merge pull request #3743 from radarhere/releasenotes
I;16 mode transpose support release notes
2019-03-28 11:49:52 +02:00
Hugo
90886b1888
Merge branch 'master' into imagecms-deprecations 2019-03-27 12:03:54 +02:00
Andrew Murray
4a5666f1f4 Added transparency for all PNG greyscale modes 2019-03-27 07:41:33 +11:00
Hugo
30841fe808
Merge pull request #3737 from jdufresne/quotes
Add backticks around Python classes and modules in open_files.rst
2019-03-23 08:31:15 +00:00
Andrew Murray
51e66522e7 Added release notes for #3563 and #3741 2019-03-23 17:36:49 +11:00
Andrew Murray
3b3e590f6c Added release notes for #3555 [ci skip] 2019-03-23 14:51:24 +11:00
Andrew Murray
61dae3041c Added release notes for #3525, #3688 and #3520 [ci skip] 2019-03-23 14:48:17 +11:00
Jon Dufresne
d31bee5e35 Add backticks around Python classes and modules in open_files.rst 2019-03-22 06:12:08 -07:00
Jon Dufresne
deb8a7aadd Remove additional references to removed handles_eof
handles_eof was removed in 90760a5f30.
2019-03-22 05:58:22 -07:00
Andrew Murray
aa2f9878a3
Remove unused RST substitution definition
Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
2019-03-17 08:00:23 +02:00
Andrew Murray
fa8ecffff2 Corrected seek documentation 2019-03-17 00:00:10 +11:00
Andrew Murray
0ad09f7386
Merge branch 'master' into mime-types 2019-03-15 07:06:59 +11:00
Andrew Murray
ebdb1ffc54 Added PNM to the list of PPM files [ci skip] 2019-03-14 08:35:27 +11:00
Hugo
e3eac00b1f
Merge pull request #3566 from radarhere/i16
Added I;16 PNG save
2019-03-12 12:25:53 +02:00
Andrew Murray
f06056cc1f Updated PNG modes [ci skip] 2019-03-12 21:10:59 +11:00
Hugo
33d207b3f0
Move to API Additions, not Deprecations [CI skip]
And some minor editing to make more concise/consistent.
2019-03-12 11:12:19 +02:00
Ben Yang
8bd4bbb808 implemented language parameter for multiline ImageDraw methods, updated release notes 2019-03-11 20:21:52 -07:00
Ben Yang
515244b672 moved language parameter in ImageDraw documentation 2019-03-11 18:56:22 -07:00
Ben Yang
c6ad867178 added proper documentation for ImageFont.getsize() 2019-03-11 18:56:22 -07:00
Ben Yang
d5bbf01254 moved 'language' parameter to last parameter in relevant functions 2019-03-11 18:56:22 -07:00
Ben Yang
8624efd283 added ability to set language for text rendering 2019-03-11 18:55:46 -07:00
Hugo
3fc77da70a
Adjust header formatting
[CI skip]
2019-03-11 21:11:37 +02:00
Konstantin Kopachev
4215d7621f
Add release notes 2019-03-11 10:44:55 -07:00
Andrew Murray
8ddcc1de52 Load EXIF from PNG where eXIf chunk is after first IDAT chunk 2019-03-11 21:20:18 +11:00
Hugo
63f31ee380
Merge pull request #3699 from glasnt/topic/quantize-dither
Add option to set dither param on quantize
2019-03-11 12:18:32 +02:00
Hugo
5da0d5beee
Merge pull request #3673 from radarhere/dds
Add reading of DDS uncompressed RGB data
2019-03-11 12:04:47 +02:00
Katie McLaughlin
0b63579f39 Add option to set dither param on quantize
Default the option to `1`, as per original setting
2019-03-09 10:36:13 +11:00
Andrew Murray
2764031762 Changed PIL references to Pillow [ci skip] 2019-03-08 21:04:23 +11:00
Andrew Murray
1c1bad3186 Document the DIB image format [ci skip] 2019-03-08 21:04:01 +11:00
Hugo
6f24eda48a Document format limitations of ImageStat.Stat.extrema and recommend more efficient Image.getextrema 2019-03-06 17:49:25 +02: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
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
Andrew Murray
c1150a2d0f Document removal of VERSION (#3624) [ci skip] 2019-03-02 18:22:34 +11:00
Andrew Murray
148d320b40 Added reading of uncompressed RGB data 2019-02-23 06:44:06 +11:00
Andrew Murray
7477036230
Merge branch 'master' into imagecms-deprecations 2019-02-21 20:00:27 +11:00
Hugo
6e1227765e
Move PyQt4/PySide above plugin constants
Both deprecated in the same version, but PyQt4/PySide has a bigger impact
2019-02-15 10:13:03 +02:00
Andrew Murray
46183f7615
Merge branch 'master' into deprecate-eol-qt 2019-02-15 19:06:37 +11:00
Hugo
186f7d943b Document deprecation 2019-02-14 23:44:07 +02:00
Hugo
3ff70c2afc
Merge branch 'master' into imagecms-deprecations 2019-02-13 15:45:28 +02:00
Andrew Murray
f95b98a59c
Fix typo
Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
2019-02-13 10:36:12 +02:00
Hugo
1793f6bd52 Document deprecated image plugin version constants (#3628) 2019-02-12 16:58:59 +02:00
Hugo
f7134f1c18
Merge pull request #3628 from jdufresne/dep-plugin-version
Deprecate PIL.*ImagePlugin.__version__ attributes
2019-02-12 15:39:43 +02:00
Andrew Murray
828a6f947c Fixed typo [ci skip] 2019-02-12 20:35:23 +11:00
Andrew Murray
4fe63e44d7 Fixed typo [ci skip] 2019-02-10 12:33:16 +11:00
Hugo
976c0d79e1 Link to Codecov rather than Coveralls 2019-02-07 17:47:20 +02:00
Hugo
eea6686f4e
Merge pull request #3620 from radarhere/outside
Added note about ImageDraw operations that exceed image bounds
2019-02-03 12:44:27 +02:00
Jon Dufresne
a11fed32b3 Deprecate PIL.*ImagePlugin.__version__ attributes
Use PIL.__version__ instead.
2019-02-02 17:39:55 -08:00