Andrew Murray
2ec7484846
Removed log2
2019-01-03 10:36:34 +11:00
Alexander Böhn
4ce620c55d
Added image.entropy()
method
...
This calculates the entropy for the image, based on the histogram.
Because this uses image histogram data directly, the existing C
function underpinning the `image.histogram()` method was abstracted
into a macro, and a new C function was added that uses this macro.
The new `image.entropy()` method is based on `image.histogram()`,
and will accept the same arguments to calculate the histogram
data it will use to assess the entropy of the image.
The algorithm and methodology is based on existing Python code:
https://git.io/fhmIU
... A test case in the `Tests/` directory, and doctest lines in
`selftest.py`, have both been added and checked.
Subsequent commits:
* Using assertAlmostEqual() in entropy tests
* Added description of `extrema` arguments.
* Only test seven digits of float returned by im.entropy()
2019-01-02 18:10:44 -05:00
Hugo van Kemenade
41fba67fb0
Merge pull request #3523 from radarhere/releasing
...
Added updating Pillow in docker-images to RELEASING
2019-01-02 14:42:38 +02:00
Hugo van Kemenade
2eb7235d03
Updated case
...
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-01-02 10:33:25 +11:00
Andrew Murray
92c6903635
Added updating Pillow in docker-images [ci skip]
2019-01-02 08:33:21 +11:00
Hugo
e32e3fdbeb
5.5.0.dev0 version bump
2019-01-01 20:26:53 +02:00
Hugo
d2d438794c
Fix for check-manifest
2019-01-01 12:56:08 +02:00
Hugo
0be809ddb3
5.4.0 version bump
2019-01-01 12:31:45 +02:00
Hugo
f64f4f4005
Merge pull request #3512 from radarhere/docker
...
Changed docker tag to master
2019-01-01 12:25:27 +02:00
Hugo
48a05e6cf3
Update CHANGES.rst
2019-01-01 12:21:38 +02:00
Hugo
398d2f0c15
Merge pull request #3522 from radarhere/imagechops
...
Improved ImageChops documentation
2019-01-01 12:21:28 +02:00
Hugo
6b5aa006b2
Merge pull request #3519 from radarhere/putpixel
...
Allow RGB and RGBA values for P image putpixel
2019-01-01 11:46:30 +02:00
Andrew Murray
ff61119f9f
Changed docstring to be consistent
2019-01-01 20:44:04 +11:00
Hugo
2de101e02c
Apply suggestions from code review
...
Changed docstrings to be consistent
Co-Authored-By: radarhere <3112309+radarhere@users.noreply.github.com>
2019-01-01 20:42:23 +11:00
Hugo
fcae1325be
Merge pull request #3521 from python-pillow/update-release-notes
...
Update 5.4.0 release notes
2019-01-01 11:36:01 +02:00
Andrew Murray
aa8f30eae8
Several methods require at least one mode 1 image
2019-01-01 14:14:22 +11:00
Andrew Murray
fc354cabaa
Added method
2019-01-01 14:11:52 +11:00
Andrew Murray
a53c39eb46
Fix typo
...
Co-Authored-By: hugovk <hugovk@users.noreply.github.com>
2018-12-31 23:09:22 +02:00
Hugo
8c38e4c6d5
Update release notes
2018-12-31 13:48:06 +02:00
Hugo
b9d102ea70
Merge pull request #3518 from radarhere/imageshow
...
im.show: Fix writing to temporary file
2018-12-31 12:34:43 +02:00
Andrew Murray
671f7a392d
Allow RGBA value for P image putpixel
2018-12-31 13:37:04 +11:00
Andrew Murray
3f6282e259
Allow RGB value for P image putpixel
2018-12-31 11:35:15 +11:00
Andrew Murray
bc3925ead5
Fixed writing to temporary file
2018-12-31 08:27:07 +11:00
Hugo
37d61f1e9b
Merge pull request #3516 from radarhere/eps
...
Allow EPS tests that do not require Ghostscript
2018-12-30 16:54:26 +02:00
Andrew Murray
0c0f769351
Allow EPS tests that do not require Ghostscript
2018-12-30 20:50:09 +11:00
Hugo
332f634460
Merge pull request #3515 from cgohlke/patch-1
...
Set EPS test files as binary
2018-12-30 09:04:56 +02:00
cgohlke
1fb43a8a8c
Set EPS test files as binary
...
Fixes issue #3514
2018-12-29 21:53:07 -08:00
Hugo
648b2668f4
Update CHANGES.rst
2018-12-29 17:04:54 +02:00
Hugo
454fdd7800
Merge pull request #3501 from pirate486743186/patch-2
...
Add APNG extension to PNG plugin
2018-12-29 16:55:07 +02:00
Hugo
5ae6f160e1
Merge pull request #3245 from pslacerda/fix/3244
...
Lookup ld.so.cache instead of hardcoding search paths
2018-12-29 16:48:26 +02:00
Hugo
7351363fe2
Merge pull request #3513 from radarhere/custom_tags
...
Added custom string TIFF tags
2018-12-29 16:47:16 +02:00
Andrew Murray
6ead422e91
Added custom string TIFF tags
2018-12-29 16:14:52 +11:00
Andrew Murray
952de2ec4c
Use constants for tag types
2018-12-29 16:14:29 +11:00
Andrew Murray
b40d293263
Changed docker tag to master
2018-12-29 05:59:00 +11:00
Hugo
5d9a3273d5
Merge pull request #3511 from radarhere/convert
...
Corrected docstring
2018-12-27 23:01:04 +02:00
Andrew Murray
5edeca28b6
Corrected docstring
2018-12-28 07:14:44 +11:00
Hugo
853453b934
Fix Flake8
2018-12-27 13:11:24 +02:00
Hugo
364e31ddde
Merge pull request #3508 from radarhere/fedora
...
Updated Travis CI from Fedora 26 and 27 to 28 and 29
2018-12-27 08:55:31 +02:00
Andrew Murray
21268c87b3
Merge branch 'master' into patch-2
2018-12-27 17:39:40 +11:00
pirate486743186
0f379a2450
Merge pull request #1 from radarhere/patch-2
...
Handle APNG chunks
2018-12-27 07:35:51 +01:00
Andrew Murray
f9ce201cf0
Test APNG image for similarity
2018-12-27 12:19:44 +11:00
Andrew Murray
acc2c150f6
Added APNG mime type
2018-12-27 11:19:40 +11:00
Andrew Murray
b5b32a519b
Updated Travis CI from Fedora 26 and 27 to 28 and 29
2018-12-27 10:58:49 +11:00
Andrew Murray
09e94e40a1
Handle APNG chunks
2018-12-27 10:53:16 +11:00
pirate486743186
8d0b7e6b57
adding apng extension for png
2018-12-26 21:14:27 +01:00
Hugo
5ff8e5fa3e
Update CHANGES.rst
2018-12-26 14:14:58 +02:00
Hugo
c5f066d3f6
Flake8
2018-12-26 14:05:01 +02:00
Hugo
c2b3bd5635
Merge pull request #3395 from diorcety/improve_configuration
...
Improve configuration
2018-12-26 13:54:16 +02:00
Hugo
7beecb9f33
Flake8
2018-12-26 13:48:55 +02:00
Hugo
a43b8bac1e
Merge pull request #3506 from radarhere/png
...
Read textual chunks located after IDAT chunks for PNG
2018-12-26 13:34:50 +02:00