wiredfool
bb20f6ca83
basic benchmark shows ~order of magnitude speedup
2014-01-05 16:45:01 -08:00
wiredfool
5efe737f6f
Cffi pixel access object, #248
2014-01-05 10:41:25 -08:00
Alex Clark ☺
bcfc06d6d0
Merge pull request #469 from manisandro/test_webp
...
Use assert_image_similar in test_file_webp.py
2014-01-04 13:34:43 -08:00
Sandro Mani
4de31b2693
Use assert_image_similar instead of assert_image_equal in test_file_webp.py
2014-01-04 21:48:18 +01:00
wiredfool
1dd80b2625
reverted int32 changes
2013-12-30 21:00:32 -08:00
cgohlke
55d4160bcc
TST: fix comparison of X/Y Resolution rational numbers
2013-12-29 20:14:51 -08:00
cgohlke
b7aafa2036
Add assert_almost_equal() for testing float numbers
2013-12-29 20:05:55 -08:00
Alex Clark ☺
ae7edfa58d
Merge pull request #441 from wiredfool/lut
...
Image.point fixes for numpy.array and docs
2013-12-28 06:08:08 -08:00
Alex Clark ☺
243160ee78
Merge pull request #448 from wiredfool/2gigapix-redux
...
2gigapix redux
2013-12-28 06:06:42 -08:00
Alex Clark ☺
ad47ea5a52
Merge pull request #424 from wiredfool/trns-write-bydefault2
...
Save the transparency header by default for PNGs
2013-12-28 05:57:45 -08:00
Alex Clark ☺
d48f301d57
Merge pull request #423 from wiredfool/trns-png
...
Support for PNG tRNS header when converting from RGB->RGBA
2013-12-28 05:56:03 -08:00
Alex Clark
35f66adbde
Remove my inferior gs binary check
2013-12-28 08:53:46 -05:00
Alex Clark ☺
6a52e272cf
Merge pull request #420 from wiredfool/gs-test
...
Skip ghostscript test when gs is missing
2013-12-28 05:52:42 -08:00
Alex Clark ☺
e4ae62ae59
Merge pull request #418 from wiredfool/AurelienBallier-master
...
PyQT5 Support
2013-12-28 05:50:49 -08:00
Alex Clark ☺
f5fb2d7e7d
Merge pull request #417 from wiredfool/libtiff-save2
...
Updates for saving color tiffs w/compression using libtiff
2013-12-28 05:47:47 -08:00
Alex Clark
26ec2a09f0
Skip eps file test if no ghostscript
2013-12-28 07:47:09 -05:00
wiredfool
598d97daff
Reorg+add test for #452
2013-12-19 21:38:31 -08:00
wiredfool
aa1c0fdfb6
merge from master
2013-12-19 20:48:49 -08:00
Eric Soroos
77008c0b62
test for 2gb numpy image segfault
2013-12-13 21:05:08 -08:00
wiredfool
4791d156f1
Comments/Docs, fixes #440
2013-12-10 16:05:05 -08:00
wiredfool
d05b5d9060
Restore numpy.array as valid lookup tables
2013-12-10 15:47:26 -08:00
wiredfool
28f22fc908
Return positive size for > 2gpx images, fixes #436
2013-12-04 20:59:33 -08:00
wiredfool
543f96de61
Merge from master
2013-11-30 09:57:00 -08:00
wiredfool
d65a2c8018
Save the transparency header by default for PNGs
2013-11-26 15:06:26 -08:00
wiredfool
0356741a29
Now using the rgbT2rgba conversion for L+transparency to RGBA, dropping the palette hack
2013-11-26 13:04:10 -08:00
wiredfool
e12528fb62
dyslexic typo
2013-11-26 12:22:09 -08:00
nikmolnar
d030b4f48a
Added a test for issue #421
2013-11-22 16:04:51 -08:00
wiredfool
c82bfd30cf
cleanup temp file
2013-11-21 22:15:34 -08:00
wiredfool
6bd51e053b
disabling bw compression test due to stderr pollution from libtiff
2013-11-21 22:14:29 -08:00
wiredfool
60c93ce1b1
Testing default pil implemented compressions with libtiff
2013-11-21 22:13:57 -08:00
wiredfool
94e3c75179
Merge from 12-bit-tiff
2013-11-21 21:41:54 -08:00
wiredfool
3d31bf394b
removing libtiff compression based decoder names
2013-11-21 21:10:17 -08:00
wiredfool
019074670b
Test for 12bit image using libtiff
2013-11-21 20:37:52 -08:00
wiredfool
1e41f2dad9
Skip ghostscript test when it's not executable
2013-11-21 14:32:18 -08:00
wiredfool
886b075526
Merge from master
2013-11-20 22:52:47 -08:00
wiredfool
b0b7c1acb5
removed debugging prints
2013-11-20 22:43:39 -08:00
wiredfool
29fb4523d5
tests for imageqt4/5
2013-11-20 22:19:28 -08:00
wiredfool
b73ae9c27a
Tests for 12bit tiff rawmode
2013-11-20 16:54:49 -08:00
Esteban Santana Santana
64e53de5c9
Another typo.
2013-11-20 02:25:50 -06:00
Esteban Santana Santana
155239cbc3
Copy paste issue on that last commit.
2013-11-20 02:22:04 -06:00
Esteban Santana Santana
7797633d7a
Loosened testing rigor for EPS files.
...
Due to differences in rendering between platforms (mainly antialiasing), we had to lower the rigor with which we test our EPS handling. Instead of making the test fail if the rendered image does not exactly match, we now only fail if the images are grossly divergent.
2013-11-20 02:14:29 -06:00
Esteban Santana Santana
582d54d055
Test harness for EPS files.
...
We now have a test harness for EPS files. Two variants were created one for the default scale=1 and one where scale=2. These two tests are run against two different EPS files, one with zero for the start of the bounding box and one where this is not the case. PNG test renders are used to make sure the output match what we expect. Lastly the sample EPS files were generated using the included create_eps.gnuplot file and the gnuplot program on a Mac.
2013-11-20 00:43:10 -06:00
wiredfool
0ffc1a848a
Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format
2013-11-19 14:48:01 -08:00
wiredfool
dd93820b74
Failing test for #403
2013-11-07 16:39:57 -08:00
wiredfool
b4aa0429aa
successful roundtrip test
2013-11-07 16:39:36 -08:00
wiredfool
1d6f6ffa10
error test for bw compression on RGB file
2013-11-05 20:59:57 -08:00
wiredfool
a4a9b36ed0
packbits isn't working correctly
2013-11-05 20:53:18 -08:00
wiredfool
d2f1fa0e5f
two additional tags for saving color images with libtiff
2013-11-05 20:49:09 -08:00
Alex Clark ☺
e3d85700b4
Merge pull request #390 from wiredfool/webp-lossless
...
Lossless WEBP Support
2013-10-24 03:08:24 -07:00
wiredfool
388c25b781
PhotometricInterpretation is set from SAVE_INFO, not the original image, so spurious test failure.
2013-10-23 20:50:01 -07:00
wiredfool
63995459bc
merge from master
2013-10-22 16:18:06 -07:00
wiredfool
f8abb98ffd
Merge from master
2013-10-22 16:05:18 -07:00
wiredfool
2c1e800836
added new VP8 mode for lossless reading of RGBA, fixes failing tests
2013-10-22 12:44:09 -07:00
wiredfool
27b1054b77
Tests for writing lossless RGB and RGBA images
2013-10-22 12:32:31 -07:00
wiredfool
6357b4707c
String attr test case
2013-10-22 10:09:25 -07:00
wiredfool
758da6c581
whitespace error
2013-10-22 10:06:33 -07:00
Eric Soroos
8d21ce1df7
py3k
2013-10-21 22:53:35 +00:00
Eric Soroos
3128a76495
MM and II 16 bit integer tiffs pack/write properly using libtiff on bigendian platform
2013-10-21 22:37:20 +00:00
wiredfool
83bd3291db
tests for the actual compression method of the compressed file
2013-10-21 09:29:51 -07:00
Eric Soroos
1945fecdb6
Tests for endian issues in decoding 16bit tif images
2013-10-21 05:19:52 +00:00
Eric Soroos
366f9a5f35
uint16 varies from platform to platform, <u2 is spefific
2013-10-19 03:30:02 +00:00
hugovk
c91bd27eec
Add tests for rotated and non-rotated transposed font
...
Check the box size of an ImageFont.TransposedFont matches that of the original ImageFont.
2013-10-17 17:36:38 +03:00
Alex Clark ☺
55a0792815
Merge pull request #380 from wiredfool/lcms2
...
LCMS1 replaced with LCMS2
2013-10-16 09:09:15 -07:00
wiredfool
deb424c5cd
working tests for LAB color conversions using ImagingCMS
2013-10-15 22:06:30 -07:00
wiredfool
1865a5c438
Shifting the midpoint of the ab channels to 128. unshifting back to signed int on pack
2013-10-15 22:06:30 -07:00
Seth VanHeulen
89b2653135
Added tests for new 16 bit raw unpackers
2013-10-15 14:10:11 -04:00
wiredfool
4458787f5e
Back to RGBx format, 3 bands in 4 bytes. Tests for internal consistency
2013-10-14 22:47:27 -07:00
wiredfool
215b61aadf
added lab->srgb and srgb->lab->srgb tests
2013-10-11 23:39:16 -07:00
wiredfool
ace78d0734
Lab is Uint, Int, Int. Tests failing
2013-10-11 23:31:47 -07:00
wiredfool
1c3932e89f
Added LAB mode, core dumped
2013-10-10 23:27:34 -07:00
wiredfool
ac38d91a2d
Well, now I know _why_ it's failing. We don't have a concept for LAB color
2013-10-10 23:02:33 -07:00
wiredfool
b506e2ad44
Fixed ability to create LAB profiles with color temperatures
2013-10-10 22:42:27 -07:00
wiredfool
9042f8c61f
split tests, disable info difference tests
2013-10-10 22:16:56 -07:00
wiredfool
21697f676b
Merge branch 'master' into tifftags
2013-10-08 21:34:02 -07:00
wiredfool
a91283061e
Python3 fixes
2013-10-07 23:30:55 -07:00
wiredfool
0bded743f5
Additional test image
2013-10-07 23:14:46 -07:00
wiredfool
350cc702f1
Additional tests for reading and writing Tiff ImageFileDirectories
2013-10-07 23:01:15 -07:00
Alex Clark ☺
056690792e
Merge pull request #364 from wiredfool/premultiply
...
Alpha Premultiplication support for transform and resize
2013-10-07 06:38:11 -07:00
wiredfool
7077cd18af
Tests for premultiplication on transform/resize
2013-10-04 12:55:25 -07:00
wiredfool
30e6c6d1ab
Merge branch 'master' into tifftags
2013-10-02 22:30:01 -07:00
wiredfool
dbf47837ce
Add arbitrary tags to tiff images using an ImageFileDirectory
2013-10-02 22:06:17 -07:00
wiredfool
c00a33f8a1
reduce text volume on failed test
2013-10-02 12:04:16 -07:00
wiredfool
13860addc4
versioning
2013-10-01 23:22:45 -07:00
wiredfool
a0d7e72cbb
don't write the test image
2013-09-30 22:47:22 -07:00
wiredfool
7546e1fb17
Py3. sigh
2013-09-30 22:39:17 -07:00
wiredfool
46c58560ba
adding memset test
2013-09-30 22:39:17 -07:00
wiredfool
2afdc3776d
quad test, with blank space test
2013-09-30 22:39:17 -07:00
wiredfool
2241f744d9
extents test
2013-09-30 22:39:17 -07:00
wiredfool
5e897341c6
Added mesh transform test
2013-09-30 22:39:17 -07:00
Alex Clark ☺
41b1021ffe
Merge pull request #354 from wiredfool/test_numpy
...
Py3 fixes
2013-09-30 17:10:28 -07:00
wiredfool
05d0aa65f1
python2 fixes. sigh.
2013-10-01 00:05:55 +00:00
wiredfool
2855449414
Py3k fixes
2013-10-01 00:01:35 +00:00
wiredfool
f6e1313337
Made linespacing test more forgiving of font rendering differences
2013-09-30 16:41:11 -07:00
wiredfool
ca35a9d65d
tests for img -> numpy.array
2013-09-30 14:10:58 -07:00
wiredfool
753a3266e8
resolving shortened url
2013-09-30 10:09:35 -07:00
wiredfool
660b1a98aa
test for 16bit tiffs, issue #273
2013-09-30 10:09:35 -07:00
Alex Clark ☺
2d4fec1cfb
Merge pull request #341 from cgohlke/patch-4
...
TST: fix TypeError: string argument expected, got 'bytes' on Py3
2013-09-28 06:14:00 -07:00
Christoph Gohlke
fb80d5b267
Circumvent classification of pngtest_bad.png as malware
2013-09-27 16:55:19 -07:00
Christoph Gohlke
ada10a0ba4
Circumvent classification of pngtest_bad.png as malware
2013-09-27 16:35:37 -07:00
Christoph Gohlke
86345d08d0
TST: fix TypeError: string argument expected, got 'bytes' on Py3
2013-09-27 15:51:53 -07:00
wiredfool
ae6eb8733a
actually cleaning
2013-09-24 14:23:43 -07:00
wiredfool
35c9f59c38
testcase for multiline text spacing
2013-09-24 14:23:17 -07:00
Vytis Banaitis
febfd1e124
Python3 fix.
2013-08-20 17:09:22 +03:00
Vytis Banaitis
dbf40a0124
Catch truncated zTXt errors.
2013-08-20 15:17:17 +03:00
Joaquín Cuenca Abela
c68044bf7f
Fix IOError when saving progressive JPEGs.
...
when the jpeg encoder sees the flags optimize or progressive (or progression)
it will write the full image in one shot.
The bufsize needs to be big enough to hold the entire image. The current heuristic
is that the entire compressed image will fit in width * height bytes, but this
heuristic is only applied to save operations with the flag "optimize" and not to
save operations with the flag "progressive".
This patch fixes this oversight.
(Btw, it will probably be a good idea to have a loop that retries with a bigger
bufsize in case this guess is not big enough.)
2013-08-02 14:36:46 +02:00
Yoav Weiss
37cb2413d5
Fix imagecolor test issue
2013-07-30 20:37:28 +02:00
Yoav Weiss
c117dcae34
Add RGBA support to ImageColor
2013-07-30 16:43:40 +02:00
wiredfool
d67d4116b5
tests for issue #279
2013-07-10 22:24:11 -07:00
Alex Clark ☺
2ed47b8096
Merge pull request #277 from wiredfool/tiff_16_bit
...
Tiff 16 bit
2013-07-09 03:28:46 -07:00
wiredfool
5b269a6ab7
small test image for I;16 => F conversion
2013-07-08 23:26:45 -07:00
wiredfool
993e075c0d
Add conversions from I;16 to F to retain 16 bit precision
2013-07-08 23:21:41 -07:00
wiredfool
c575dff007
ignore high ascii characters in string.whitespace
2013-07-08 22:16:25 -07:00
Bernardo Heynemann
b4735f7829
Adding support for metadata in webp images.
...
Pillow now uses the webpmux library to envelop the webp images in RIFF. This allows for easy support of exif and icc_profile metadata.
Also included tests that verify compatibility with jpeg for exif and icc_profile metadata.
If the user does not have webp with webpmux enabled, pillow will fall back to the previous approach, meaning no exif or icc_profile metadata will be read or written to.
2013-07-04 18:04:07 -03:00
Alex Clark ☺
1693a21bc5
Merge pull request #269 from megabuz/master
...
move test_adobe_deflate_tiff to libtiff test file
2013-07-02 03:37:34 -07:00
Alexey Buzanov
bacaf26f20
move test_adobe_deflate_tiff to libtiff test file
2013-07-02 13:49:43 +04:00
Alex Clark ☺
fd98b0cceb
Merge pull request #268 from megabuz/master
...
Add several TIFF decoders and encoders
2013-07-01 09:14:43 -07:00
Alexey Buzanov
df0e214d46
hide tiff warnings
2013-07-01 19:48:21 +04:00
Alexey Buzanov
a130c45990
add several TIFF decoders and encoders
2013-07-01 18:45:42 +04:00
Chris Bailey
08d0ec1e93
Generalizing pterk's ZeroDivisionError fix for 1px images
2013-07-01 12:36:46 +01:00
Alex Clark ☺
3207bf372a
Merge pull request #266 from cgohlke/remove-test_imagegl
...
Remove useless ImageGL module
2013-07-01 03:32:27 -07:00
Christoph Gohlke
f042fd6af3
remove useless ImageGL module
2013-06-30 20:39:12 -07:00
Christoph Gohlke
3e87da96bd
Don't skip 'import site' on initialization when running tests for inplace builds
2013-06-30 18:43:35 -07:00
Alex Clark
172dae9e35
Fixes #262
...
Apply patch from @arfrever to resolve Tests/test_imagefont.py tests leave font.png
2013-06-30 18:47:02 -04:00
Alex Clark
bb1b3a532c
Cleanup WS, courtesy of @Arfrever
...
find * -type f "-(" -name "*.bdf" -o -name "*.c" -o -name "*.h" -o -name "*.py" -o -name "*.rst" -o -name "*.txt" "-)" -exec sed -e "s/[[:space:]]*$//" -i {} \;
2013-06-30 18:42:19 -04:00
Alex Clark ☺
19ad775140
Merge pull request #243 from kostya0shift/master
...
Better support for ICO files
2013-06-29 16:02:11 -07:00
Peter van Kampen
ad0a96c3fa
add test & comment
2013-06-23 15:22:31 +02:00
kostya0shift
78565ea3f1
Test for ICO corrected
2013-06-05 21:38:20 +04:00
wiredfool
aad417dcbe
Merge pull request #229 from wiredfool/warnings
...
Fixing and Suppressing warnings revealed in #227
2013-05-24 08:36:57 -07:00
Alex Clark ☺
5c11e27a97
Merge pull request #228 from d-schmidt/master
...
working gif optimization
2013-05-24 05:59:23 -07:00
wiredfool
ab0fe89131
Supressing ResourceWarnings for unclosed files in the test suite. Revert me when fixed
2013-05-23 10:44:09 -07:00
wiredfool
2322619372
fixed deprecation warnings for tostring on array.array
2013-05-23 10:33:27 -07:00
David Schmidt
65266a7419
Update test_file_gif.py
...
remove warning
2013-05-23 20:02:19 +03:00
David Schmidt
dad5e86226
fix gif test, fix gif optimization for palette length < 3
2013-05-23 15:24:06 +02:00
Alex Clark ☺
a9fd1f4a94
Merge pull request #225 from wiredfool/pr224
...
Fix Image.fromarray with NumPy arrays: Supersedes PR #224
2013-05-23 05:51:58 -07:00
Alex Clark ☺
258cf5300d
Merge pull request #191 from wiredfool/namespaced
...
Changes to put everything under the PIL namespace
2013-05-23 05:51:36 -07:00
wiredfool
94d9218dd0
enable warnings for test suite
2013-05-22 09:26:41 -07:00
wiredfool
b3752ca053
merge from master
2013-05-21 21:29:58 -07:00
Matt Davis
c3d6b05d10
Adding a test of fromarray that exercises the if strides is not None block.
2013-05-21 21:55:58 -04:00
Alex Clark ☺
1c3ff8857a
Merge pull request #220 from wiredfool/weba_transparent
...
Transparent WebP Support, #204
2013-05-16 12:49:02 -07:00
wiredfool
37359369ce
Code to ensure buffer space for exif write and jpeg_write_scanline calls, tests, corrected buffer length calculation
2013-05-14 22:29:31 -07:00
wiredfool
94239540db
fixing deferring the rgba tests, whitespace
2013-05-13 22:21:52 -07:00
wiredfool
014ca1497d
versions, feature checking
2013-05-13 21:28:18 -07:00
wiredfool
3273b0c4b9
Merge branch 'master' of https://github.com/euangoddard/Pillow into weba_transparent
2013-05-13 09:54:34 -07:00
wiredfool
310341cec7
merge from master
2013-05-13 09:17:52 -07:00
Euan Goddard
1344610a52
Added support for alpha transparent webp images #204
2013-05-13 17:01:42 +01:00
Alex Clark ☺
6599df461b
Merge pull request #213 from mattip/master
...
add tests and fix for issue 212
2013-05-11 15:37:04 -07:00
Sandro Mani
e3f8395293
Fix test hardcoded for little endian
2013-05-07 23:55:48 +02:00
Matti Picus
6a942c3065
add assert to test
2013-05-07 23:49:45 +03:00
Matti Picus
af94b45cbc
allow integer image resolution as well as rational
2013-05-07 23:33:21 +03:00
Matti Picus
5ca04bb728
a test that fails for images with integer resolution
2013-05-07 23:23:51 +03:00
wiredfool
44d97759af
Merge pull request #209 from wiredfool/pr202
...
Fonts from Filelike Objects
2013-04-25 22:14:10 -07:00
wiredfool
2e3cc80aa5
Added font rendering tests
2013-04-25 21:58:04 -07:00
Nicolas Pieuchot
5577801aaa
Changing StringIO to BytesIO
2013-04-25 21:45:12 +02:00
Nicolas Pieuchot
6d8ba56c44
Adding Python 3 support for StringIO
2013-04-25 21:25:06 +02:00
Nicolas Pieuchot
450a068ccb
Removing buffer from imagefont
2013-04-25 18:48:43 +02:00
Michał Górny
0aa05780c5
test_file_tiff: skip JPEG-in-TIFF tests if libjpeg is not available.
2013-04-22 11:55:17 +02:00
wiredfool
c3d6b0d7f6
Merge pull request #201 from wiredfool/pr199
...
Skip tests for features that aren't compiled in, includes #199
2013-04-21 13:43:14 -07:00
wiredfool
52cbacf028
renamed
2013-04-21 13:54:30 -07:00
wiredfool
25f26f74e8
rename to include libtiff
2013-04-21 13:53:43 -07:00
wiredfool
d2c9ee14ad
skipp these test is libtiff support is not included
2013-04-21 13:52:04 -07:00
wiredfool
945b6bf53c
Split tiff tests so that test_file_tiff tests the builtins, and test_file_libtiff tests only things that depend on libtiff
2013-04-21 13:51:16 -07:00
Michał Górny
c01696bf2d
Use proper tempdir for temporary test files.
...
Writing temporary files in source tree is just wrong. Instead, use
a directory inside system tempdir.
2013-04-21 11:05:31 +02:00
Michał Górny
995fe2b041
test_file_tiff: skip if TIFF is not available.
2013-04-21 10:40:56 +02:00
Michał Górny
a83530f475
test_font_pcf: skip if zlib is not available.
2013-04-21 10:30:59 +02:00
Michał Górny
a5a5c854b8
test_image_draft: skip if no JPEG support.
2013-04-21 10:27:27 +02:00
Michał Górny
e2221de8f5
Support (most of) test_image_split without PNG.
...
If PNG (zlib) support is disabled, use .pcx for test_image_split which
is unconditional. Since it does not support RGBA, skip the RGBA test.
Otherwise, just use PNG and do the full test.
2013-04-21 10:18:32 +02:00
Michał Górny
6cdc8b08db
test_imagefile: handle missing PNG & JPEG encoders gracefully.
2013-04-21 10:13:33 +02:00
Michał Górny
6afa11ec02
test_file_tar: skip if codecs are not available.
...
The .tar test requires both jpeg & zlib support. If one of the two is
unavailable, run the test for the second one. If both are unavailable,
skip the test.
2013-04-21 10:04:58 +02:00
wiredfool
b0fffd24a4
Merge branch 'master' of https://github.com/python-imaging/Pillow into namespaced
2013-04-09 12:08:13 -07:00
wiredfool
8295e33390
moved _webp into the PIL namespace
2013-04-08 21:53:59 -07:00
Alex Clark ☺
8e3072230f
Merge pull request #178 from manisandro/endian
...
Fix tests which are hardcoded for little-endian CPUs
2013-04-08 17:54:26 -07:00
Sandro Mani
2a2a1ea144
Fix tests which are hardcoded for little-endian CPUs
2013-04-07 19:02:11 +02:00
wiredfool
38b0bef464
webp is in import, not a codec
2013-03-27 10:00:35 -07:00
wiredfool
86bb25e735
reenable basic webp test, skip if support not installed
2013-03-27 09:52:47 -07:00
David Schmidt
a05bf23b05
Merge branch 'master' of https://github.com/python-imaging/Pillow
2013-03-26 11:24:52 +01:00
David Schmidt
5303f0ea66
added tests to cover save of four different png transparencies
2013-03-26 11:24:07 +01:00
Alex Clark ☺
8244203366
Merge pull request #157 from wiredfool/webp_tests
...
approximate test for lossy image writing
2013-03-23 08:46:24 -07:00
wiredfool
2a743c9527
JpegImagePlugin sets bufsize for optimized images
2013-03-22 22:27:12 -07:00
wiredfool
5eae020aef
py3 as well
2013-03-22 21:25:37 -07:00
wiredfool
f432530df3
approximate test for lossy image writing
2013-03-22 21:15:45 -07:00
Sandro Mani
e3cb3074ce
Add tempfile for test output
2013-03-22 01:58:19 +01:00
wiredfool
d678b97444
added write verification test
2013-03-19 13:49:01 -07:00
wiredfool
02931c4956
checking results of webp decoding
2013-03-19 13:40:10 -07:00
wiredfool
95353cff15
basic sanity test for webp
2013-03-19 11:43:45 -07:00
Alex Clark
f9a3390bc7
Add test instructions from Mark Sienkiewicz
2013-03-15 16:47:14 -04:00
Alex Clark ☺
d635b516ea
Merge pull request #129 from cgohlke/patch-2
...
Remove test that fails when numpy.int is 64 bit
2013-03-14 17:48:03 -07:00
Alex Clark ☺
1cd3ce8689
Merge pull request #124 from wiredfool/jpeg
...
Remove irrelevant test
2013-03-14 17:47:24 -07:00
Christoph Gohlke
054f1ef870
Remove test that fails when numpy.int is 64 bit
...
Fixes issues #75
2013-03-14 17:14:44 -07:00
Christoph Gohlke
5f54802ea7
Enable test_file_tiff
2013-03-14 16:12:57 -07:00
Christoph Gohlke
bd55b8baf1
End 'Make' tag with null byte
2013-03-14 16:06:20 -07:00
wiredfool
c6249a5b76
Remove irrelevant test
2013-03-14 15:45:44 -07:00
wiredfool
d98abd877b
merge to master
2013-03-14 14:38:49 -07:00
wiredfool
8b153d1ec4
renamed testfile
2013-03-14 13:33:10 -07:00
Alex Clark
fa275f51b5
Cross plat fix
2013-03-14 16:27:31 -04:00
wiredfool
7d99141405
force seek to beginning of file
2013-03-14 13:25:23 -07:00
Christoph Gohlke
a72d46d314
Disable debug messages during g4 tiff tests
2013-03-14 12:26:00 -07:00
wiredfool
7db24ccac8
StringIO -> BytesIO
2013-03-14 10:17:26 -07:00
Christoph Gohlke
92c3d626c6
Revert PR #110
2013-03-13 23:16:25 -07:00
Christoph Gohlke
e071f062cf
Fix g4_tiff test on Python 3
2013-03-13 19:31:37 -07:00
Alex Clark
82ad8dc44b
Better skip test ; more changelogging
2013-03-13 21:45:15 -04:00
Alex Clark
062397c0af
Skip test
2013-03-13 19:21:43 -04:00
Alex Clark
289d96331a
Py3 compat
2013-03-13 18:45:18 -04:00
wiredfool
03dcb5c557
more verbose testing, checking for g4 compression
2013-03-13 10:59:06 -07:00
wiredfool
7226d0dc26
Merge branch 'master' into g4_support
2013-03-12 22:24:36 -07:00
wiredfool
00de0292ac
test suite for g4 tiff images
2013-03-11 22:04:22 -07:00
Oliver Tonnhofer
6537ba19c3
backport PIL's PNG/Zip improvements
...
- add new FASTOCTREE quantizer with alpha support
- make ZIP compress level and type configurable
- support reading/writing PNGs with paletted alpha
source 3637439d51
2013-03-11 20:33:04 +01:00
Alex Clark
d0d92de8ab
Punt
2013-03-08 09:32:08 -05:00
Mikhail Korobov
a71183dab5
better fix for #15 (with a test case now)
2013-02-26 17:12:11 +06:00
Mikhail Korobov
c4baeccfce
fix 2.6 tests by replacing usages of deprecated fromstring/tostring with frombytes/tobytes
2013-02-26 16:28:34 +06:00
Mikhail Korobov
fbcc9b5c77
Test running improvements: all tests can be run with tox; run.py script exits with an error code in case of failures.
2013-02-26 16:03:25 +06:00
Brian Crowell
848579af9b
py3k: Add Windows icon sanity test
2013-01-10 08:47:04 -06:00
Brian Crowell
276cc421f7
py3k: Add XPM read test
...
This test includes an XPM file with transparency.
2013-01-10 08:47:03 -06:00
Brian Crowell
d6a0dec15b
py3k: Add TarIO test
...
Not too convinced of the size fix. While it works against my file, I'm not
sure someone would have accidentally been an index off and not noticed.
2013-01-10 08:47:03 -06:00
Brian Crowell
6765b8e026
py3k: Add .FLI sanity check, and fix palette bytes bug
2013-01-10 08:47:01 -06:00
Brian Crowell
9921d838e4
py3k: Add Photoshop sanity check
2013-01-10 08:47:01 -06:00
Brian Crowell
2972b2178e
py3k: Add PCX to roundtrip test
...
For some reason, the PCX codec round-trips now.
2013-01-10 08:47:00 -06:00
Brian Crowell
4f7d784a71
py3k: Actually fix the EPS encoder
...
The EPS encoder wasn't part of Gohlke's test suite, so the previous "fixes"
there were only expected syntactic ones. This gives a cleaner fix to the
encoder.
The decoder doesn't work in round-trip due to a missing eps_decoder method
on the core module, but it's clear it worked at some point.
2013-01-10 08:47:00 -06:00
Brian Crowell
8035b1a76a
py3k: FIX: TGA missing o8 declaration
...
Plus, TGA was eligible for a round-trip test in test_imagefile. It has one
now.
2013-01-10 08:46:59 -06:00
Brian Crowell
a7e3b2e47b
py3k: The big push
...
There are two main issues fixed with this commit:
* bytes vs. str: All file, image, and palette data are now handled as
bytes. A new _binary module consolidates the hacks needed to do this
across Python versions. tostring/fromstring methods have been renamed to
tobytes/frombytes, but the Python 2.6/2.7 versions alias them to the old
names for compatibility. Users should move to tobytes/frombytes.
One other potentially-breaking change is that text data in image files
(such as tags, comments) are now explicitly handled with a specific
character encoding in mind. This works well with the Unicode str in
Python 3, but may trip up old code expecting a straight byte-for-byte
translation to a Python string. This also required a change to Gohlke's
tags tests (in Tests/test_file_png.py) to expect Unicode strings from
the code.
* True div vs. floor div: Many division operations used the "/" operator
to do floor division, which is now the "//" operator in Python 3. These
were fixed.
As of this commit, on the first pass, I have one failing test (improper
handling of a slice object in a C module, test_imagepath.py) in Python 3,
and three that that I haven't tried running yet (test_imagegl,
test_imagegrab, and test_imageqt). I also haven't tested anything on
Windows. All but the three skipped tests run flawlessly against Pythons
2.6 and 2.7.
2013-01-10 08:46:56 -06:00
Brian Crowell
718dbcc8ca
py3k: Provide the missing pngtest_bad.png.base64
...
This is from http://scary.beasts.org/security/CESA-2004-001.txt . This was
missing from Gohlke's tests. With this file, I see 79 tests and no failures
on my setup from 2.6/2.7.
2013-01-10 08:46:41 -06:00
Brian Crowell
197885164b
py3k: Backport Gohlke's tests to run on 2.6/2.7
...
Most of the differences are in tobytes/tostring naming and expected
behavior of the bytes() constructor. The latter was usually easy to fix
with the right bytes literal.
This is a good preview of what will have to happen in the Python 3 code.
2013-01-10 08:46:39 -06:00
Brian Crowell
ad784eb808
py3k: Import Christoph Gohlke's test suite
...
This is Christoph Gohlke's test suite from his personal PIL package found
at http://www.lfd.uci.edu/~gohlke/pythonlibs/ .
This is just to bring it in as a separate commit. Future commits will align
it with Pillow.
2013-01-10 08:46:39 -06:00