Commit Graph

6143 Commits

Author SHA1 Message Date
ces42
8fb44a2bee More explicit error message when saving to a file with invalid extension (#2399)
* more explicit error message when saving to a file with invalid extension + test
2017-02-17 13:39:16 +00:00
wiredfool
b5f6732501 Merge pull request #2397 from radarhere/psdraw
Added anchor to readthedocs URL
2017-02-17 13:37:33 +00:00
wiredfool
82ed92671b Merge pull request #2403 from hugovk/https-links-in-docs
Docs: Update http to https
2017-02-17 13:36:30 +00:00
Leonid Bloch
28b818974e Allow to save tiff stacks from separate images
This is a quick solution that will allow to save tiff stacks from
separate images, e.g. from Numpy arrays.
Previously, tiff stacks could be saved only from multiframe images.
This behavior is similar to what is possible now with GIFs.

Note however, that for correct results, all the appended images should
have the same encoder{info,config} properties.

Example:

import numpy as np
from PIL import Image
a = np.ones((100,100,100), dtype=np.uint8)
imlist = []
for m in a:
    imlist.append(Image.fromarray(m))

imlist[0].save("test.tif", compression="tiff_deflate", save_all=True,
               append_images=imlist[1:])

(Should result in a 100-frame, 100x100 tiff stack.)

Signed-off-by: Leonid Bloch <leonid.bloch@esrf.fr>
2017-02-17 00:57:00 +02:00
Hugo
53e5702557 Update http to https 2017-02-14 11:27:02 +02:00
Andrew Murray
63d0a5a326 Added anchor to readthedocs URL 2017-02-11 12:47:10 +11:00
Andrew Murray
75ca512c02 Updated libwebp to 0.6.0 2017-02-09 19:14:25 +11:00
wiredfool
0f9233623e Update CHANGES.rst [ci skip] 2017-02-07 19:39:40 +00:00
wiredfool
3ea2599984 Merge pull request #2355 from gunjambi/imagecms-preserve-aux-channels
Imagecms preserve aux channels
2017-02-07 19:38:05 +00:00
Eric Soroos
70ef34eda8 added additional docker builds, removed nightly 2017-02-07 03:19:11 -08:00
wiredfool
2d271e2374 Update CHANGES.rst [ci skip] 2017-02-06 21:59:34 +00:00
wiredfool
9c4eafc188 Merge pull request #2382 from hugovk/test-effects
Test linear and radial gradient effects
2017-02-06 21:58:41 +00:00
hugovk
d7fe8d1eb7 Linear and radial gradient: only need one target image 2017-02-06 22:03:17 +02:00
wiredfool
88d7c6f09d Update CHANGES.rst [ci skip] 2017-02-06 17:00:31 +00:00
wiredfool
cdaa448782 Merge pull request #2389 from hugovk/outline
Test ImageDraw.Outline and and ImageDraw.Shape
2017-02-06 16:57:18 +00:00
wiredfool
c0b1c9c30e Merge pull request #2392 from radarhere/qt
Added PySide to ImageQt documentation
2017-02-06 16:56:10 +00:00
Andrew Murray
973d1cfb3d Added PySide to ImageQt documentation [ci skip] 2017-02-05 14:45:55 +11:00
wiredfool
997bcb269b Update CHANGES.rst [ci skip] 2017-01-31 19:04:30 +00:00
wiredfool
b93025fa5b Merge pull request #2380 from evalapply/master
BUG fix: '' in image mode no longer causes a crash
2017-01-31 19:03:29 +00:00
hugovk
96dfd722c3 Test ImageDraw.Outline curve 2017-01-31 08:22:33 +02:00
hugovk
008431fe0e Test ImageDraw.Outline curve 2017-01-30 21:50:48 +02:00
Hugo
04e3f585b0 Test no change with identity matrix 2017-01-30 14:28:00 +02:00
Hugo
7fba16b074 Test for similarity 2017-01-30 14:27:29 +02:00
wiredfool
7068e645ae Updated Changes.rst [ci skip] 2017-01-30 11:30:10 +00:00
wiredfool
0450788f1a Merge pull request #2386 from radarhere/manifest
Exclude .travis and contents from manifest
2017-01-30 11:29:28 +00:00
Andrew Murray
bb129c4cae Exclude .travis and contents from manifest 2017-01-30 19:51:28 +11:00
Andrew Murray
0f06d817bb Merge pull request #2385 from hugovk/fix-syntax-error
Fix after_success.sh syntax error
2017-01-30 19:24:59 +11:00
hugovk
5e5eb9b2f4 Fix syntax error 2017-01-30 08:53:09 +02:00
hugovk
05aa252f9f Tabs to spaces and add defensive brackets 2017-01-29 18:50:30 +02:00
hugovk
07af06bf8c Expose and test radial_gradient 2017-01-29 18:44:24 +02:00
hugovk
3ead178d18 flake8 2017-01-29 18:38:06 +02:00
hugovk
47b1c66961 Expose and test linear_gradient 2017-01-29 18:17:31 +02:00
hugovk
fdf0737fcd Test matrix convert for ValueError: image has wrong mode 2017-01-29 15:55:17 +02:00
hugovk
90dac5f4dc Refactor and test matrix convert with RGB and L modes 2017-01-29 14:24:49 +02:00
hugovk
cea36587ab Test matrix convert 2017-01-29 14:03:38 +02:00
Hugo
92c9e7255e [CI skip] 2017-01-29 13:38:54 +02:00
Hugo
6d11fa23dd Merge pull request #2145 from wiredfool/license
Remove 'MIT-like' from license
2017-01-29 13:17:32 +02:00
Hugo
5d9c975c46 Merge branch 'master' into license 2017-01-29 13:06:10 +02:00
Hugo
7726296a93 Merge pull request #2379 from radarhere/test
Add tests for several Image operations
2017-01-29 12:56:53 +02:00
Lukasz Kozuchowski
3e317f3ca0 Empty image mode test 2017-01-29 07:50:28 +01:00
Lukasz Kozuchowski
3ffcd9770c BUG fix: '' in image mode no longer causes a crash 2017-01-29 07:20:44 +01:00
Jarkko Pöyry
4a1ad8986f Preserve auxiliary channels during CMS transform. 2017-01-28 22:05:49 +02:00
Jarkko Pöyry
fa56b3d255 Add tests for CMS transform auxiliary channel preservation. See bug #1662. 2017-01-28 22:04:49 +02:00
Andrew Murray
e67ee44ea8 Added test for missing method data in Image transform 2017-01-28 14:21:41 +11:00
Andrew Murray
cd114cef3f Added test for Image fromstring NotImplementedError 2017-01-28 14:16:39 +11:00
Andrew Murray
2039d43d85 Added test for unknown filter in Image resize 2017-01-28 14:09:28 +11:00
Andrew Murray
01cb6590a4 Added test for point operation on F mode image 2017-01-28 14:02:22 +11:00
Andrew Murray
e8495e5917 Added test for abbreviated Image paste mask syntax 2017-01-28 13:50:44 +11:00
Andrew Murray
581fef2ebd Added test for Image offset NotImplementedError 2017-01-28 13:06:28 +11:00
Jon Dufresne
cecdb2af61 Send unwanted subprocess output to /dev/null
Avoids unnecessary creation of temporary files as well as unnecessarily
storing process output in memory. The temporary files would sometimes
remain and not be cleaned up.
2017-01-26 17:31:29 -08:00