Mitchel Humpherys
92096e1aa7
Tiff: Bail out if there are no valid exif tags
...
Some corrupted images end up with no valid exif tags. This case is
currently not handled gracefully, resulting in the following:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/mitchhumpherys/Sites/str-prod/env/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 391, in _getexif
return _getexif(self)
File "/Users/mitchhumpherys/Sites/str-prod/env/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 426, in _getexif
exif = dict(_fixup_dict(info))
File "/Users/mitchhumpherys/Sites/str-prod/env/lib/python2.7/site-packages/PIL/JpegImagePlugin.py", line 407, in _fixup_dict
return dict([(k, _fixup(v)) for k, v in src_dict.items()])
File "/Users/mitchhumpherys/Sites/str-prod/env/bin/../lib/python2.7/_abcoll.py", line 414, in items
return [(key, self[key]) for key in self]
File "/Users/mitchhumpherys/Sites/str-prod/env/lib/python2.7/site-packages/PIL/TiffImagePlugin.py", line 854, in __getitem__
self._setitem(tag, handler(self, data, legacy), legacy)
File "/Users/mitchhumpherys/Sites/str-prod/env/lib/python2.7/site-packages/PIL/TiffImagePlugin.py", line 534, in _setitem
dest[tag], = values
ValueError: need more than 0 values to unpack
Just bail out if there aren't any valid tags.
Fixes #1722
2016-06-23 09:22:04 -07:00
wiredfool
b3591351f6
Updated release notes [ci skip]
...
removed --disable-osx-tcltk-frameworks
2016-06-11 15:45:00 +01:00
wiredfool
f3f3d3c40b
Updated Changes.rst [ci skip]
2016-06-11 15:43:53 +01:00
wiredfool
ff584b926d
Updated Changes.rst [ci skip]
2016-06-11 15:43:35 +01:00
wiredfool
501cb3f17d
Merge pull request #1947 from wiredfool/revert_1883
...
Revert "docs for new --disable-osx-tclck-frameworks option"
2016-06-11 15:42:48 +01:00
wiredfool
e26cb747d2
Revert "docs for new setup.py option"
...
This reverts commit da62f7c25b
.
2016-06-11 07:39:33 -07:00
wiredfool
e2302bb0c9
Updated Changes.rst [ci skip]
2016-06-11 15:32:11 +01:00
wiredfool
eb28cc9d0f
Merge pull request #1932 from matthew-brett/run-time-tcl-tk
...
RF: run-time loading of Tcl / Tk functions
2016-06-11 15:27:29 +01:00
wiredfool
ebd3c35de5
Merge pull request #1941 from uploadcare/cleanup-transforms
...
Cleanup transforms
2016-06-11 15:25:34 +01:00
homm
78242e4acd
remove stale comment
2016-06-08 16:47:26 +03:00
wiredfool
ac6e86765d
Updated Changes.rst [ci skip]
2016-06-08 14:17:56 +01:00
homm
3d622d60cf
make perspecive transform arguments order more common
2016-06-08 16:17:41 +03:00
homm
2b77b1cec7
make affine transform arguments order more common
2016-06-08 16:17:41 +03:00
homm
4cfc791a5b
remove unused filter_data
2016-06-08 16:17:41 +03:00
homm
bc51928171
move ImagingCopyInfo after affine_fixed
2016-06-08 16:17:41 +03:00
homm
9902d2e1c5
move transform dispatcher into libImaging
2016-06-08 16:17:41 +03:00
homm
2e914af758
unused
2016-06-08 16:17:41 +03:00
homm
6be3df2a43
remove internal ImagingTransform from headers
...
rename to ImagingGenericTransform
2016-06-08 16:17:41 +03:00
homm
1f8c2527ba
internal rotating functions not used anymore
2016-06-08 16:17:41 +03:00
homm
709078efd1
use one self.transform for rotation
2016-06-08 16:17:41 +03:00
homm
7687ce829e
round results of sin and cos functions because there is no possible
...
float-point value of radians which cos will exactly 0.
2016-06-08 16:17:41 +03:00
homm
8203a43d26
Fast paths for rotation
2016-06-08 16:17:41 +03:00
homm
f680b5417b
one code style for all methods
2016-06-08 16:17:41 +03:00
homm
3fa3b48ae9
ImagingTransposeToNew not used anymore
2016-06-08 16:17:41 +03:00
homm
e5b2cbe4ad
undef local defines
...
add section cookie for affine_fixed
2016-06-08 16:17:41 +03:00
homm
a18325afe1
remove WITH_FILTERS
2016-06-08 16:17:41 +03:00
wiredfool
a83ae6caee
Merge pull request #1936 from wiredfool/unref_error
...
Fix "Fatal Python error: UNREF invalid object" in debug builds
2016-06-08 14:16:42 +01:00
wiredfool
45b28a2a4b
Merge pull request #1937 from wiredfool/alpine-setup
...
Alpine setup.py fixes
2016-06-08 14:15:33 +01:00
wiredfool
62551a8b49
Merge pull request #1933 from uploadcare/resample-vertical-pass
...
Resample horizontal + vertical pass
2016-06-08 14:14:41 +01:00
homm
12c8cf94f2
replace calloc with remaining values emptying
2016-06-08 03:45:08 +03:00
homm
c8262660f0
add RGBa to ImageMode.getmode() as a temporary
2016-06-03 13:01:24 +03:00
homm
3b7923c09f
add calloc explanation
2016-06-03 12:51:58 +03:00
wiredfool
4cca857b1e
Updated Changes.rst [ci skip]
2016-05-31 14:41:08 +01:00
wiredfool
6fe8d0f15b
Merge pull request #1914 from uploadcare/box-blur-alpha
...
Box blur with premultiplied alpha
2016-05-31 14:40:25 +01:00
Matthew Brett
4bc75e4088
RF: try finding tkinter in Python rather than C
...
Use imported module to find tkinter. Should find tkinter module for all
available versions of PyPy that have tkinter compiled, as well as
CPython.
2016-05-30 12:51:28 -07:00
wiredfool
187c0f48d7
imagequant build
2016-05-30 07:18:23 -07:00
wiredfool
d316c185b3
Main git repo, on master. Will fail till PR is merged
2016-05-30 07:02:06 -07:00
wiredfool
d81c016052
Sample dockerfile for alpine linux
2016-05-30 06:51:45 -07:00
wiredfool
ac51f1ee37
Fixes to run cleanly on alpine linux
2016-05-30 06:28:08 -07:00
wiredfool
ffb61968f0
Initialize ptr and guard call to free
2016-05-30 03:56:28 -07:00
wiredfool
72c45e6f5d
Fix Fatal Python error: UNREF invalid object in debug builds
...
PyObject_Del() should only be called on the self object in
a dealloc call, not after failing to make a new object.
Replace with Py_DECREF, which eventually calls PyObject_Del()
http://bugs.python.org/issue3299#msg78740
https://mail.python.org/pipermail/python-dev/2003-February/033258.html
2016-05-30 03:16:16 -07:00
homm
f09067e45e
add La mode (2 bands) to the test
2016-05-28 10:47:14 +03:00
homm
34afabbf18
return malloc where clearing is not required
2016-05-28 10:47:07 +03:00
Matthew Brett
6968c0c712
BF: make sure tkinter loaded for check
...
Make sure that tkinter package is loaded before checking for symbols in
process (Windows).
2016-05-27 19:42:21 -04:00
Matthew Brett
659e294676
RF: run-time loading of Tcl / Tk functions
...
Discover Tcl / Tk functions at run-time by looking in libs loaded by
Tkinter Python module.
Use header excerpts from Tcl / Tk so we don't need an installed Tcl / Tk
to build.
2016-05-27 16:51:08 -04:00
Hugo
2af16a7b58
Typos
...
[CI skip]
2016-05-27 08:52:46 +03:00
Hugo
034c5fe8cb
Merge pull request #1931 from wiredfool/pngquant-docs
...
Additional docs for libimagequant
2016-05-27 08:51:28 +03:00
homm
4ea0c83450
do not rotate image between passes
2016-05-27 07:24:22 +03:00
homm
c051f1d79d
ImagingResampleVertical_32bpc implementation
2016-05-27 07:21:34 +03:00
homm
5cd8c35c82
complete ImagingResampleVertical_8bpc implementation
2016-05-27 07:12:01 +03:00