Commit Graph

3630 Commits

Author SHA1 Message Date
Antony Lee
95d619add5 libtiff's rational precision is limited to C floats. 2015-06-30 18:38:31 -07:00
Antony Lee
5b348bb695 Fail on invalid EXIF, reverting ed2cca1. 2015-06-29 15:37:58 -07:00
Antony Lee
752d46324c Reorder OPEN_INFO to cover both endiannesses.
By interleaving little and big-endian entries we make sure entries
exist for both cases.  Some additional entries created when the
big-endian was missing.  I am not sure of what entry to create for the
big-endian, 4-bit case (what is the order of the two entries within the
byte?).
2015-06-29 12:45:17 -07:00
Antony Lee
96c391559d Support too long ExtraSamples.
Some programs generate SamplesPerPixel entries in ExtraSamples instead
of SamplesPerPixel-3, cf. #1227.  This is a stopgap measure to support
them.  One could also decide to add generic code to always support
having SamplesPerPixel entries (by dropping the first 3).
2015-06-29 12:45:17 -07:00
Antony Lee
c4c1b6e980 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-06-29 12:45:17 -07:00
Antony Lee
63b492f83f Include tests of #1113. 2015-06-29 12:45:17 -07:00
Antony Lee
157215ec85 Fix MPO support, and Python2.6 support. 2015-06-29 12:45:17 -07:00
Antony Lee
4d7a5695b8 Fix EXIF support. 2015-06-29 12:45:17 -07:00
Antony Lee
634e752445 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-06-29 12:45:17 -07:00
Antony Lee
b9bccd12ff Fix setting of TIFF ExtraSamples tag.
- force cast ExtraSamples to a list.
- fix calls to ImagingLibTiffSetField to include array length.
2015-06-29 12:44:29 -07:00
Alex Clark
96944e2dd6 Bump 2015-06-29 08:57:55 -04:00
Hugo van Kemenade
fc18f08eb5 Update CHANGES.rst [CI skip] 2015-06-29 10:22:03 +03:00
Hugo van Kemenade
06a2f4bf76 Merge pull request #1316 from radarhere/patch-1
Fixed ValueError in Python 2.6
2015-06-29 10:20:26 +03:00
Hugo van Kemenade
bcf93b6d3e Merge pull request #1315 from cgohlke/patch-1
TST: fix ValueError on Python 2.6
2015-06-29 10:20:04 +03:00
Andrew Murray
29cb7d24b8 Fixed ValueError in Python 2.6 2015-06-29 14:59:05 +10:00
Christoph Gohlke
3dd3c4e28c TST: fix ValueError on Python 2.6 2015-06-28 20:50:17 -07:00
Alex Clark
efe925c26f Fix manifest [ci skip] 2015-06-28 15:07:01 -04:00
Alex Clark
7a3268d4ae Set default makefile target
"make" runs release test
2015-06-28 14:57:51 -04:00
Hugo van Kemenade
9275c2561b Merge pull request #1311 from radarhere/patch-1
Fixed typo
2015-06-28 08:18:27 +03:00
Andrew Murray
46fad0fd63 Fixed typo 2015-06-28 12:03:11 +10:00
Hugo van Kemenade
552e7a579b Update CHANGES.rst [CI skip] 2015-06-27 20:53:32 +03:00
Hugo van Kemenade
21f73f26ca Merge pull request #1308 from radarhere/tox
Fixed tox test script path
2015-06-27 20:52:51 +03:00
Andrew Murray
1c7a140298 Fixed tox test script path 2015-06-27 09:10:01 +10:00
wiredfool
0c3615e3c7 Merge pull request #1306 from wiredfool/tcl85_update
Updated tcl/tk extract directories
2015-06-26 10:25:15 -07:00
wiredfool
26e6bb25ef updated tcl/tk extract directories 2015-06-26 10:08:40 -07:00
wiredfool
77f45aa402 Workaround for clone failing
Workaround for https://github.com/appveyor/ci/issues/315
2015-06-26 09:04:04 -07:00
Hugo van Kemenade
4260a76175 Merge pull request #1305 from radarhere/sizedocs
Documentation for width and height properties
2015-06-26 13:16:32 +03:00
Andrew Murray
65f5f05b4f Added documentation for width and height properties [ci skip] 2015-06-26 20:14:26 +10:00
Hugo van Kemenade
3f7ec4e981 Update CHANGES.rst [CI skip] 2015-06-26 13:02:05 +03:00
Hugo van Kemenade
4cf2240093 Merge pull request #1304 from radarhere/size
Added width and height properties
2015-06-26 13:01:02 +03:00
Andrew Murray
afa4cadb23 Added width and height properties 2015-06-26 17:20:17 +10:00
Hugo van Kemenade
951923f755 Update CHANGES.rst [CI skip] 2015-06-26 10:18:07 +03:00
Hugo van Kemenade
04d09aacfa Merge pull request #1303 from radarhere/update
Update tiff and tk tcl 8.5 versions
2015-06-26 10:17:27 +03:00
Andrew Murray
36fc250a52 Updated tiff and tk tcl 8.5 versions 2015-06-26 11:01:40 +10:00
wiredfool
ae0dfa8379 Update CHANGES.rst [ci skip] 2015-06-22 11:33:07 -07:00
wiredfool
cea766e980 Merge pull request #1217 from radarhere/qt-convert
Add functions to convert: Image <-> QImage; Image <-> QPixmap
2015-06-22 11:32:55 -07:00
Hugo van Kemenade
8a534edaf8 Merge pull request #1299 from radarhere/patch-1
Update Windows badge [ci skip]
2015-06-22 10:42:09 +03:00
Andrew Murray
3590902a14 Update Windows badge [ci skip] 2015-06-22 08:42:04 +10:00
Hugo van Kemenade
05c482655c Merge pull request #1291 from radarhere/winbuild_health
Style/health fixes
2015-06-21 17:42:01 +03:00
Hugo van Kemenade
5feed777dc Update CHANGES.rst [CI skip] 2015-06-21 17:40:00 +03:00
Hugo van Kemenade
7e0fad2eac Merge pull request #1294 from radarhere/gifmaker
Remove duplicate code in gifmaker script
2015-06-21 17:38:58 +03:00
Hugo van Kemenade
bf328878b0 Merge pull request #1295 from radarhere/patch-2
Updated changes
2015-06-21 17:36:51 +03:00
Andrew Murray
c851316b3f Updated CHANGES [ci skip] 2015-06-21 20:59:50 +10:00
Andrew Murray
b553ad7a70 Further fixes 2015-06-21 16:33:55 +10:00
wiredfool
c75a61407d Update CHANGES.rst [ci skip] 2015-06-20 13:59:55 -07:00
wiredfool
680aaa41cb Merge pull request #1177 from radarhere/multiline
Multiline text
2015-06-20 13:58:28 -07:00
Andrew Murray
8dc8a1235e Added Python 3 support to gifmaker script 2015-06-20 23:52:39 +10:00
Andrew Murray
6d7eb53b52 Changed gifmaker script to use ImageSequence Iterator 2015-06-20 23:52:02 +10:00
Andrew Murray
bbf3b52357 Flake8 fixes 2015-06-20 14:46:04 +10:00
Andrew Murray
8a7080cbce Health fixes 2015-06-20 14:41:47 +10:00