Andrew Murray
28119dd68d
Changed test to use tempfile
2017-11-08 12:59:05 +11:00
Andrew Murray
bfaa0a1f07
Added support for generators when using append_images for WEBP
2017-11-06 20:06:50 +11:00
Andrew Murray
6c6f95f1d6
Removed unnecessary code
2017-11-06 19:54:15 +11:00
wiredfool
a3a9faf3a2
Merge pull request #2761 from monolithlabs/animated_webp
...
Add support for animated WebP files
2017-11-05 15:34:50 +00:00
wiredfool
52079cb297
Merge pull request #2805 from ixio/fix-#2804
...
Fix #2804 : sets encoderinfo for images when saving multi-page PDF
2017-11-05 15:18:22 +00:00
wiredfool
533c5dfd05
Merge pull request #2789 from jdufresne/olefile-optional
...
Allow the olefile dependency to be optional
2017-11-05 15:09:06 +00:00
wiredfool
f5e4338b86
Merge pull request #2813 from wiredfool/issue_2811
...
Permit LZW code lengths up to 12 bits in GIF decode
2017-11-05 15:02:41 +00:00
wiredfool
13d8499371
Merge pull request #2825 from wiredfool/fix_pcf_tests
...
Fix PCF/PILFont
2017-11-05 15:01:50 +00:00
Andrew Murray
bc255c97ff
Added support for generators when using append_images
2017-11-04 10:46:15 +11:00
Eric Soroos
3f4abf6caa
Fix/test for #2826 , unchecked exception leading to null pointer dereference, segfault
2017-11-02 20:46:17 +00:00
Eric Soroos
b0b2009c58
Where is this failing on hello, world
2017-11-02 13:07:49 +00:00
Eric Soroos
ab61cedbdc
added text size test
2017-11-02 13:07:49 +00:00
Eric Soroos
ebb0a491b6
test the accuracy of the font file conversion
2017-11-02 13:07:49 +00:00
Eric Soroos
7a5d215022
Remove Adobe Helvetica screen font, update Pcf font tests using freely available font
2017-11-02 13:07:49 +00:00
Eric Soroos
636e5ff1e9
Relaxing similarity on showpage test, Arch has rendering differences
2017-11-01 14:05:40 +00:00
Eric Soroos
fcabe1c08c
Tests for issue #2811
2017-10-25 13:52:33 +00:00
Ixio
5dfe5f0fa6
Fix #2804 : sets encoderinfo for images when saving multi-page PDF
2017-10-19 13:30:34 +02:00
Andrew Murray
97662294f0
Added context manager support
2017-10-07 23:18:23 +11:00
Jon Dufresne
9175706300
Allow the olefile dependency to be optional
...
Support for plugins requiring olefile will not be loaded if it is not
installed. Allows library consumers to avoid installing this dependency
if they choose. Some library consumers have little interest in the
format support and would like to keep dependencies to a minimum.
2017-10-04 06:54:34 -07:00
hugovk
5524d806b4
Failing test for #2783
2017-10-04 11:09:52 +00:00
Jason Douglas
cf31e70735
Fixing a typo in comments
2017-10-03 08:05:20 -07:00
Jason Douglas
28bec69e98
- flake8 formatting fixes
...
- webp => WebP doc and comment changes
2017-10-01 15:23:18 -07:00
wiredfool
0d1e44dc2f
Merge pull request #2769 from wiredfool/pr_2638
...
Update to #2638 , add 16bit/rle support to SgiImageFile
2017-10-01 20:56:18 +01:00
wiredfool
c82f9fe1bb
Merge pull request #2738 from uploadcare/block-storage
...
Block & array hybrid storage
2017-10-01 20:41:08 +01:00
wiredfool
3051178749
Merge pull request #1849 from radarhere/frames
...
Common seek frame position check
2017-10-01 20:20:30 +01:00
Christoph Gohlke
3ad73ff447
Fix ValueError: invalid version number '1.0.0rc1'
2017-09-30 22:15:28 -07:00
Andrew Murray
c8b65f4efd
Added _min_frame property
2017-09-30 13:33:13 +10:00
Andrew Murray
f61b70aa8f
Changed EOFError tests
2017-09-30 13:33:06 +10:00
Andrew Murray
78c62727d3
Moved seek frame position check into ImageFile
2017-09-30 13:32:43 +10:00
wiredfool
efe98726cf
Merge pull request #2756 from hugovk/ResourceWarning-cherrypicked
...
ResourceWarning tests
2017-09-29 15:36:16 +01:00
wiredfool
fd8ee8437b
Merge pull request #2315 from radarhere/is_animated
...
If n_frames is known, then use when determining is_animated
2017-09-29 15:26:22 +01:00
Eric Soroos
7c629d7814
Added L;16/B pack functions
2017-09-29 13:41:39 +00:00
Eric Soroos
6816a9d4ce
Removed test for YCbCr != 3 channels
2017-09-29 13:34:49 +00:00
Eric Soroos
2014cf69b8
16bpc write test
2017-09-29 10:41:42 +00:00
Mickael Bonfill
a422a28bb7
add unit tests
2017-09-29 09:15:21 +00:00
Mickael B
a90dc49100
add RLE decompression for SGI images
2017-09-29 09:12:03 +00:00
Jason Douglas
c5e6211936
Don't use unittest skip decorator, doesn't seem to work
2017-09-27 23:10:44 -07:00
Jason Douglas
acc4334291
- Fix _webp reference when _webp is not available
...
- HandleMuxError function needs to be tied to WEBP_HAVEMUX, not WEBP_HAVEANIM
2017-09-27 22:13:13 -07:00
Jason Douglas
405d1a64d8
- Fix incorrect pixel width in WebP RGBX import call
...
- Add a test to cover RGBX import
2017-09-27 21:22:05 -07:00
Jason Douglas
5b2dd29f44
Fix invalid_args test for older versions of libwebp
2017-09-27 20:21:18 -07:00
Jason Douglas
80b96246c4
Fix tests to support different output modes (RGB vs RGBX)
2017-09-27 19:28:43 -07:00
Jason Douglas
c18d26b04b
- Conditonally compile animation support, only if the mux.h and demux.h headers meet the ABI version requirements
...
- Add WEBPMUX support back to WebPDecode_wrapper (to support older versions of libwebp that have mux support, but not animation)
- Add HAVE_WEBPANIM flag, and use it appropriately
- Update documentation / tests
2017-09-27 19:04:24 -07:00
Jason Douglas
e534991409
- Styling changes to be C89-conformant
...
- Change WebPAnimEncoder/Decoder to use RGBX mode instead of RGB (since internally it is using RGBA always)
2017-09-27 17:10:25 -07:00
Jason Douglas
356da80686
Fix metadata test for python3
2017-09-26 20:46:35 -07:00
Jason Douglas
cd12a48fe0
- Support non-alpha modes with WebPAnimDecoder
...
- Support writing metadata chunks with WebPAnimEncoder
- Add XMP metadata support to legacy WebPEncode wrapper
- Cleanup unused mux code in legacy WebPDecode wrapper
- Fix some bugs present when compiled without WebP Mux support
- Fix conversion from L/P/PA modes when saving WebP files
- Update existing tests, and add new ones for WebP animation and metadata support
2017-09-26 20:27:40 -07:00
hugovk
9344bd20dd
Move test_no_resource_warning_for_numpy_array to test_numpy so it can be skipped easily
2017-09-23 22:39:10 +03:00
hugovk
0b6691ecc9
A numpy failing test for ResourceWarning on Python 3
2017-09-23 22:36:53 +03:00
hugovk
cde8c1b560
Improve assert_warning() error message for warn_class=None
2017-09-23 22:36:42 +03:00
hugovk
77f0608c4e
Failing test for ResourceWarning on Python 3
2017-09-23 22:36:03 +03:00
Alexander
4b85230726
clear_cache: number or blocks to keep
2017-09-23 04:20:53 +03:00
wiredfool
b8d6fd57fa
Merge pull request #1860 from radarhere/register_extensions
...
Added register_extensions method
2017-09-22 15:59:04 +01:00
wiredfool
6198422383
Merge pull request #2748 from wiredfool/i16s
...
Fix TIFF support for I;16S, I;16BS, and I;32BS rawmodes
2017-09-22 15:57:56 +01:00
Eric Soroos
a89c4e455d
Target mode is I, check pixels
2017-09-20 09:26:40 +00:00
Andrew Murray
4087479464
Added test image
2017-09-20 09:04:48 +00:00
Alexander
a78e92356f
Merge branch 'master' into block-storage
2017-09-19 21:08:21 +03:00
wiredfool
a0ce5740d5
Merge pull request #2719 from wiredfool/issue_2278
...
Fixes for Issues #2278 and #2006 , value error in exif/tiff ifd
2017-09-19 14:26:29 +01:00
Eric Soroos
c12b9fb4dc
added test for metadata count warning
2017-09-19 10:35:14 +00:00
wiredfool
c786213b09
Merge pull request #2291 from asergi/pathlib2
...
Use pathlib2 for Path objects on Python < 3.4
2017-09-19 11:11:35 +01:00
wiredfool
7541755aa5
Merge pull request #2730 from uploadcare/fast-geometry
...
Faster Transposition
2017-09-19 10:58:47 +01:00
Alexander
654b5f7958
tests for env vars
2017-09-19 01:00:18 +03:00
Alexander
44c2698f69
ImagingMemoryBlock structure
2017-09-18 22:48:32 +03:00
Alexander
2ab19bbe44
actually fix tests on pypy
2017-09-18 03:17:45 +03:00
Alexander
23527774d3
test for images wider than block_size
2017-09-18 02:57:14 +03:00
Alexander
ae104b0d0e
collect garbage before check memory
2017-09-18 02:51:27 +03:00
Alexander
6d2be876c8
tests
2017-09-18 02:37:47 +03:00
Alexander
af3dcf84af
python api for resources
2017-09-18 01:41:39 +03:00
Alexander
0054743100
fix zero size images
2017-09-17 02:58:01 +03:00
Eric Soroos
56e490fe7c
Test for issue #2278
2017-09-14 20:05:13 +01:00
Eric Soroos
843f8b2a6b
Test for ImageJMetaDataByteCounts, #2006
2017-09-14 20:05:13 +01:00
Eric Soroos
83c57a8063
Specific change for issue #2006 , ImageJ Metadata counts are incorrect in TiffTags
2017-09-14 20:05:13 +01:00
Eric Soroos
488691bda4
General fix for issue #2278 , #2006 , ValueError with out of spec metadata
2017-09-14 20:05:13 +01:00
Alexander
8b1a3cc80c
DeprecationWarning tests
2017-09-14 02:49:05 +03:00
Alexander
6900a7707f
ImageFilter.BoxBlur
2017-09-14 01:59:25 +03:00
Alexander
b6b3b004d8
tests for transverse, add to docs
2017-09-11 23:00:35 +03:00
wiredfool
3b5c2c30be
Merge pull request #2679 from uploadcare/fast-filters
...
Fast filters
2017-09-10 17:22:00 +01:00
Eric Soroos
c42867fa2c
Added expected result, renamed images
2017-09-09 12:01:38 +00:00
Samuele Kaplun
c07ce878d7
Fix EPS import
...
Fixes EPS import by adding the missing "showpage" Postscript command
to the end of the gs call.
See: https://bugs.ghostscript.com/show_bug.cgi?id=698272
Signed-off-by: Samuele Kaplun <samuele.kaplun@cern.ch>
2017-09-09 12:01:38 +00:00
wiredfool
04052e85c9
Merge pull request #2647 from radarhere/spider
...
Added file pointer save to SpiderImagePlugin
2017-09-09 10:23:45 +01:00
Andrew Murray
55d0a816c7
Added test
2017-09-04 20:32:15 +10:00
wiredfool
39df75bd07
Merge pull request #2706 from wiredfool/issue_2666
...
Fix for crash drawing empty strings
2017-09-04 11:26:28 +01:00
wiredfool
e71757aa6f
Merge pull request #2634 from wiredfool/issue_2629
...
Fix for memory leaks in font handling
2017-09-04 11:23:57 +01:00
wiredfool
2611b2caa5
Merge pull request #2689 from radarhere/tests
...
Added tests
2017-09-04 11:15:28 +01:00
wiredfool
b2cd6aaff7
test for font memory leaks
2017-09-04 09:58:52 +00:00
Eric Soroos
41b5121d6e
refactor png leak test to use PillowLeakTestCase
2017-09-04 09:58:52 +00:00
wiredfool
ed68328c09
refactored memory leak test case
2017-09-04 09:58:05 +00:00
Andrew Murray
5c2df30ac3
Removed ImageDraw.Draw del calls
2017-09-01 21:06:22 +10:00
Andrew Murray
2ac18689d5
Removed unnecessary return statements
2017-09-01 21:06:22 +10:00
Andrew Murray
9e843a2d9b
Changed format of lambda calls
2017-09-01 21:05:40 +10:00
Andrew Murray
371933a597
Added tests
2017-09-01 20:36:51 +10:00
Andrew Murray
c10ad19a2b
Changed file opening in tests to use with
2017-09-01 20:03:54 +10:00
Alexander
a7cf91499a
Regular comments instead of strings [ci skip]
2017-09-01 08:42:57 +03:00
Alexander
edcbd3f67d
Tests for skipping passes (are passed if disable the passes skipping)
2017-08-31 23:01:21 +03:00
wiredfool
c3fbd9de01
test for issue #2666
2017-08-31 08:56:06 -07:00
wiredfool
2ad43c4eeb
Merge pull request #2704 from wiredfool/issue_2702
...
Remove palettes from non-palette modes in _new #2702
2017-08-31 15:09:37 +01:00
wiredfool
f4c56a7179
Merge pull request #2633 from olt/delete-rgb-transparency
...
Delete transparency info when img.convert'ing RGB/L to RGBA
2017-08-31 15:08:52 +01:00
wiredfool
e422f92e52
Remove palettes from non-palette modes in _new #2702
2017-08-31 06:18:59 -07:00
wiredfool
32d14e382a
Merge pull request #2698 from uploadcare/jpeg-subsampling
...
Fix sampling factor for subsampling=2 while JPEG saving
2017-08-31 13:23:48 +01:00
Alexander
ad4b42f5f4
Merge branch 'master' into fast-filters
2017-08-28 21:47:43 +03:00
Alexander
eee3e2dd32
Missed not covered BGRa mode
2017-08-28 21:45:24 +03:00
Alexander
b9f3fa4a28
increase coverage
2017-08-28 21:18:25 +03:00
Alexander
82c986dfab
Merge branch 'master' into 16-bit-rgb-tiff
2017-08-28 19:42:46 +03:00
Alexander Karpinsky
6b4b1dc3c5
Merge pull request #2694 from uploadcare/packing-tests
...
Packing tests
2017-08-28 19:42:06 +03:00
Alexander
40fe1f721e
unpacking tests for "I" and "F" modes
2017-08-28 19:22:59 +03:00
Alexander
aac0869ca7
Revert little-endian byte order for "I" and "F" rawmodes
2017-08-28 19:02:15 +03:00
Alexander
4d56db3a34
Fix wrong formula for subsampling=2 while JPEG saving
2017-08-27 20:03:36 +03:00
Alexander
7f7b53447a
Add tests for all new modes
2017-08-26 17:36:06 +03:00
Alexander
a78e45c3dc
Merge branch 'packing-tests' into 16-bit-rgb-tiff
2017-08-26 17:17:49 +03:00
Alexander
922407e7f3
fix py3, change test
2017-08-26 11:02:51 +03:00
Alexander
f43b9f396f
Second part of pack tests
2017-08-26 10:49:28 +03:00
Alexander
8cb9cba1e0
Packing tests, first part. Fix RGBX packers
2017-08-24 00:58:39 +03:00
Alexander
a812f6c480
fix tests test_I16
2017-08-23 23:09:09 +03:00
Alexander
d33eab504d
byte strings
2017-08-23 10:52:30 +03:00
Alexander
29aca0815a
Third part of unpack tests
2017-08-23 10:27:13 +03:00
Alexander
5c2199c97b
Second part of unpack tests
2017-08-23 01:55:55 +03:00
Alexander
f012fa15dd
First part of unpack tests
2017-08-23 01:32:10 +03:00
wiredfool
f5a8ece187
Merge pull request #2254 from uploadcare/resample-roi
...
Region of interest (box) for resampling
2017-08-22 22:35:12 +01:00
Alexander
21d1c4cef5
Merge branch 'master' into 16-bit-rgb-tiff
2017-08-21 22:43:30 +03:00
Alexander
846f986bc8
Tests for 16bit tiff
2017-08-21 17:10:05 +03:00
Andrew Murray
ce999ff302
If n_frames is known, then use when determining is_animated
2017-08-18 20:20:27 +10:00
Alexander
b975f9db92
Merge branch 'master' into resample-roi
...
# Conflicts:
# libImaging/Resample.c
2017-08-17 15:43:30 +03:00
Alexander
e7cdb3718c
Merge branch 'master' into fast-filters
2017-08-17 02:50:18 +03:00
wiredfool
300dfcf4a4
Test/fix for issue #2044
2017-08-16 11:46:27 -07:00
wiredfool
a42f993bec
Merge pull request #2675 from radarhere/im
...
Added test for ImImagePlugin tell()
2017-08-16 15:41:37 +01:00
wiredfool
c0f0268651
Merge pull request #2667 from vytisb/exif_zerodivision
...
Fix ZeroDivisionError when EXIF contains invalid DPI (0/0).
2017-08-16 15:39:20 +01:00
wiredfool
b4a373eae7
Merge pull request #2659 from radarhere/sgi_tests
...
Added tests for SgiImagePlugin
2017-08-16 15:37:35 +01:00
wiredfool
e2602452f4
Merge pull request #2661 from uploadcare/get-channel
...
New Image.getchannel method
2017-08-16 15:33:54 +01:00
wiredfool
1d416c58e5
Merge pull request #2674 from radarhere/fli
...
Use frame count from FLI header
2017-08-16 15:13:27 +01:00
wiredfool
e7aa155b72
Merge pull request #2654 from python-pillow/storage-cleanup
...
Storage cleanup
2017-08-16 12:00:32 +01:00
Andrew Murray
72f0c7b873
Updated tests
2017-08-16 20:57:10 +10:00
wiredfool
680a7ac43b
Merge branch 'master' into fli
2017-08-16 11:46:55 +01:00
wiredfool
b56d533aea
Merge pull request #2650 from hugovk/fix-fli-seek-load
...
Test animated FLI file
2017-08-16 11:44:35 +01:00
wiredfool
851d4ec538
Merge pull request #2645 from hugovk/mv-createfontdatachunk
...
Move createfontdatachunk.py so isn't installed globally
2017-08-16 11:38:11 +01:00
wiredfool
3967e00bcd
Merge pull request #2641 from hugovk/fix-unexpected-align
...
Fix unexpected keyword argument 'align'
2017-08-16 11:37:12 +01:00
Alexander
e842919f37
oops 2
2017-08-15 07:53:31 +03:00
Alexander
b8e104e743
oops
2017-08-15 07:52:02 +03:00
Alexander
b31c74a9cc
Tests for all bands and combinations
2017-08-15 07:45:03 +03:00
Alexander
847dd67a41
serious test for kernel filters
2017-08-12 23:22:59 +03:00
Alexander
e16ab0ad2e
add tests, fix implementation
2017-08-12 14:10:39 +03:00
Andrew Murray
7088e1a201
Added tests
2017-08-12 19:30:09 +10:00
Andrew Murray
4744fc0584
Added test for ImImagePlugin tell()
2017-08-12 15:54:54 +10:00
Alexander
79eae6e3bf
actually box can be empty, this is noop
2017-08-11 19:36:46 +03:00
Alexander Karpinsky
09a2e1641b
Merge branch 'master' into resample-roi
2017-08-11 19:10:11 +03:00
Vytis Banaitis
7c8e0e4457
Fix ZeroDivisionError when EXIF contains invalid DPI (0/0).
2017-08-09 16:16:14 +03:00
Alexander
349e300d7b
use getchannel where is possible
2017-08-09 02:36:07 +03:00
Andrew Murray
5d5a2a3762
Added test for 1 dimensional L mode SGI save
2017-08-07 21:57:59 +10:00
Andrew Murray
667fff7862
Added SGI test for an incorrect number of bands
2017-08-07 20:10:39 +10:00
Andrew Murray
e4927b8f2f
Added SGI test for saving an image in an unsupported mode
2017-08-07 19:21:54 +10:00
Alexander
0649da02c6
fix tests on python 3
2017-08-06 14:12:55 +03:00
Alexander
6b50ba07fd
add tests for Image.new modes
2017-08-06 14:12:55 +03:00
Hugo
382db4442c
Test animated FLI
2017-08-04 14:41:28 +03:00