wiredfool
2636679868
updating tests for legacy_api api change
2015-09-13 14:08:49 +01:00
wiredfool
0c942911d9
fixed the rebase
2015-09-11 22:39:37 +01:00
Antony Lee
c113e8f7cd
libtiff's rational precision is limited to C floats.
2015-09-11 22:39:37 +01:00
Antony Lee
93abbd0caa
Restore legacy TIFF API.
...
To have the old API that always returns tuples, and fractions as pairs,
set the `legacy_api` attribute of the IFD to True.
This should alleviate concerns about backwards compatibility.
2015-09-11 22:39:37 +01:00
Antony Lee
974bcc074b
Major rewrite of TIFF ImageFileDirectory.
...
Do not represent scalar tags as 1-element tuples. Keep tag
type and count information in TiffTags.TAGS. Normalize data in
ImageFileDirectory.__setitem__: wrap and unwrap tuples as needed,
convert rationals to floats. (To ensure consistency, make the "tags"
attribute private.) Interpret byte data as a series of integers rather
than a bytearray (which should only map to the "undefined" type). On
Python3, if a str is assigned to an "undefined" tag, encode it as ASCII.
Note that a large number of tags have been removed from TiffTags.TAGS
because I do not have time to figure out the type and count of each of
them. They should be restored before this gets merged in.
This obviously breaks backwards compatibility in a lot of ways...
2015-09-11 22:34:50 +01:00
Antony Lee
4e754e9c55
Use logging instead of print.
...
cf. #1191 .
Only TiffImagePlugin and OLEFileIO still rely on (their own) DEBUG flag.
I left TiffImagePlugin as it is because I hope #1059 gets merged in
first, and OLEFileIO because it uses its own logic.
Untested, as usual.
2015-06-29 12:39:50 -07:00
Andrew Murray
4e2de9d9ed
Added missing future print imports and removed unnecessary imports
2015-05-23 20:28:41 +10:00
Andrew Murray
ee34d6843b
Further health fixes
2015-04-24 18:24:52 +10:00
Andrew Murray
7f414057c9
Fixed redefinition of built-in
2015-04-24 16:02:39 +10:00
Andrew Murray
d1c182cadc
Various Flake8 fixes
2015-04-24 09:26:52 +10:00
Hugo
02476b7689
Remove unused variable, and other minor flake8 warnings
2014-11-17 10:33:31 +02:00
wiredfool
9a2cc7df83
hoist import, move test to libtiff
2014-11-15 20:38:52 -08:00
wiredfool
2d2474685a
Added 4bit test to libtiff as well
2014-10-29 11:07:20 -07:00
Hugo
91aa29ca2b
Replace lena with hopper
2014-09-23 16:16:04 +03:00
Hugo
925cea3780
Replace lena_g4.tif with hopper_g4.tif
2014-09-23 10:57:55 +03:00
hugovk
eb458c7c8f
Replace lena.tif with hopper.tif (created with ImageMagick)
2014-09-05 12:14:45 +03:00
wiredfool
d8b2829f4b
Partial fix for test failures, works on py2.x
2014-09-02 15:20:25 -07:00
wiredfool
b8bdd13aac
Tests for multipage tiffs
2014-09-02 15:20:24 -07:00
wiredfool
3e361d800d
Refactor inheritance tree of test_file_libtiff_small
2014-08-26 09:58:23 -07:00
hugovk
cf04a9a0d2
Remove unused tearDownModule
2014-07-07 20:03:50 +03:00
hugovk
3ec505958e
Convert old tests to use unittest
2014-06-10 12:10:47 +03:00
hugovk
c9a4272af6
Replace python-imaging with python-pillow (but yet not Coveralls)
2014-06-03 13:02:44 +03:00
wiredfool
413a086c09
Remove READ|WRITE_LIBTIFF guards for LZW/packbits compression tests
2014-05-20 10:13:58 -07:00
wiredfool
65c17d4176
Removed warning import, stray im=None, and moved os import to top
2014-03-28 08:35:18 -07:00
wiredfool
b73b4a7b63
Tests for #526
2014-03-27 22:17:27 -07:00
cgohlke
55d4160bcc
TST: fix comparison of X/Y Resolution rational numbers
2013-12-29 20:14:51 -08:00
wiredfool
aa1c0fdfb6
merge from master
2013-12-19 20:48:49 -08:00
wiredfool
543f96de61
Merge from master
2013-11-30 09:57:00 -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
0ffc1a848a
Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format
2013-11-19 14:48:01 -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
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
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
wiredfool
350cc702f1
Additional tests for reading and writing Tiff ImageFileDirectories
2013-10-07 23:01:15 -07:00
wiredfool
d67d4116b5
tests for issue #279
2013-07-10 22:24:11 -07:00
Alexey Buzanov
bacaf26f20
move test_adobe_deflate_tiff to libtiff test file
2013-07-02 13:49:43 +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
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