Commit Graph

10766 Commits

Author SHA1 Message Date
Jon Dufresne
2a194a6323 Remove W503 from flake8 ignore list (ignored by default)
See:
https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes

> In the default configuration, the checks E121, E123, E126, E133, E226,
> E241, E242, E704, W503, W504 and W505 are ignored because they are not
> rules unanimously accepted, and PEP 8 does not enforce them.
2020-08-31 11:31:35 -07:00
Hugo van Kemenade
1ff90e7bdb
Merge pull request #4812 from PeterPetrik/fix_build_macos 2020-08-31 16:44:14 +03:00
nulano
9667d5c6cc
Merge branch 'master' into mingw-setup 2020-08-31 14:18:39 +01:00
Peter Petrik
00dede539e
Merge pull request #1 from radarhere/fix_build_macos
Renamed zip header file
2020-08-31 15:09:04 +02:00
Andrew Murray
799b25d9f1 Renamed zip header file 2020-08-31 22:44:51 +10:00
Andrew Murray
fffb7002be
Merge pull request #4892 from radarhere/precommit
Update pre-commit
2020-08-31 22:38:18 +10:00
Andrew Murray
ca43774d40 Corrected comment layout
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2020-08-31 18:50:15 +10: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
Hugo van Kemenade
280eb84c2d
Merge pull request #4891 from nulano/revert-4832 2020-08-31 08:53:19 +03:00
nulano
22b8b25f2f update CI targets 2020-08-31 00:50:45 +02:00
Andrew Murray
2d29c5085d Updated CHANGES.rst [ci skip] 2020-08-30 14:32:28 +10:00
nulano
facf73f8d0 use proper names for MSYS2 2020-08-30 06:24:22 +02:00
nulano
3c9897799b Revert "Merge pull request #4832 from radarhere/msys2_32"
This reverts commit d0dd3444a2, reversing
changes made to afbbdf5f72.
2020-08-30 06:24:21 +02:00
nulano
3099ca6473 document installation on MSYS2 2020-08-30 05:07:32 +02:00
nulano
3cabcf242f fix libtiff in MSYS2 2020-08-30 04:31:46 +02:00
nulano
db6253c927 remove msys2 gcc workaround 2020-08-30 01:43:55 +02:00
nulano
3b38eb317b remove legacy include directory for libimagequant
1) it is hardcoded to 32-bit C:\msys64\mingw32
2) current library version uses \mingw64\include\libimagequant.h directly
2020-08-30 00:57:27 +02:00
Hugo van Kemenade
b650a90c02
Merge pull request #4889 from radarhere/harfbuzz
Updated harfbuzz to 2.7.2
2020-08-29 07:50:13 +03:00
Andrew Murray
c9ecfa85c1 Updated harfbuzz to 2.7.2 2020-08-29 14:05:49 +10:00
Andrew Murray
9b86da9c26
Merge pull request #4888 from radarhere/bugfix/ifdrational-equality
Fix IFDRational __eq__ bug
2020-08-29 08:28:55 +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
luphord
78e971913c fix IFDRational equality 2020-08-28 20:47:16 +10:00
Andrew Murray
f9f492b2b1 Added HAMMING to thumbnail docstring [ci skip] 2020-08-27 19:55:24 +10:00
Andrew Murray
101e8f84b6
Merge pull request #4872 from hugovk/add-logo-to-readme
Add Pillow logo to README and PyPI
2020-08-27 19:38:28 +10:00
Hugo van Kemenade
572259bcde
Merge pull request #4885 from radarhere/exception 2020-08-24 17:36:30 +03:00
Andrew Murray
0af193afc0 Added test 2020-08-24 21:32:55 +10:00
Guillaume Ayoub
45b228e835 Fix exception handling when saving images
The e variable is already used in the for loop, use exc to store the exception.
2020-08-24 21:32:21 +10:00
Hugo van Kemenade
b9081d2238
Merge pull request #4842 from radarhere/zlib
Added homebrew zlib include directory
2020-08-23 14:57:01 +03:00
Hugo van Kemenade
855a28e544
Merge pull request #4866 from radarhere/cmyk_pdf
Corrected inverted PDF CMYK colors
2020-08-23 14:38:06 +03: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
Hugo van Kemenade
9c6d0bdcb7
Merge pull request #4843 from navneeth/master 2020-08-22 10:37:59 +03:00
Andrew Murray
4b936162fa
Merge pull request #4884 from radarhere/setuptools
Removed TravisCI setuptools version requirement
2020-08-22 08:04:47 +10:00
Andrew Murray
3e6dae8455 Removed TravisCI setuptools version requirement 2020-08-21 22:30:25 +10: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
Hugo van Kemenade
ff635923b2
Update release notes: Add mask parameter to autocontrast 2020-08-19 16:33:23 +03:00
Hugo van Kemenade
6fecb841b4
Merge branch 'master' into master 2020-08-19 16:11:18 +03:00
Hugo van Kemenade
2fecde95e1
Fix link
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
2020-08-17 14:41:32 +03:00
Hugo van Kemenade
7f711ce91a Convert README to Markdown and add logo
[CI skip]
2020-08-17 10:29:52 +03: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
Nathaniel Quillin
1743ac4734 Initialize offset memory for PyImagingPhotoPut.
When using image mode "1" or "L" block.offset[3] is never initialized. In some use cases the block is passed to Tk_PhotoPutBlock (https://github.com/tcltk/tk/blob/master/generic/tkImgPhoto.c#L2752) and block.offset[3] is stored in alphaoffset which is later referenced.
2020-08-15 21:16:18 +10:00