Commit Graph

3170 Commits

Author SHA1 Message Date
Hugo
20fd366eb9 Update CHANGES.rst [CI skip] 2015-04-01 14:18:01 +03:00
Hugo
4308872809 Merge pull request #1131 from mixcloud/gd-unbound-local-variable
Fix UnboundLocalError in ImageFile
2015-04-01 14:16:36 +03:00
Alex Clark
58680fcd7a Fix syntax [ci skip] 2015-04-01 06:52:12 -04:00
Alex Clark
da4469d392 Add link to issues [ci skip] 2015-04-01 06:50:57 -04:00
Alex Clark
6dabce59c7 Source dists aren't binary [ci skip] 2015-04-01 06:19:12 -04:00
Alex Clark
d58e6f873c Add sdist helpers to makefile [ci skip]
Document in RELEASING
2015-04-01 06:16:36 -04:00
Alex Clark
54956f57c6 No separate upload required [ci skip] 2015-04-01 06:15:10 -04:00
Alex Clark
d20038e845 You don't need to register every release [ci skip]
Only once per project
2015-04-01 06:10:17 -04:00
Alex Clark
b9fb9449fb Merge pull request #1160 from radarhere/health
Further health fixes
2015-04-01 06:06:47 -04:00
Alex Clark
c91768f7bf Merge pull request #1117 from radarhere/master
Allow truetype() to search for extensions other than .ttf
2015-04-01 06:01:19 -04:00
George Davaris
68663ad352 Define t variable in a more appropriate place 2015-04-01 10:48:28 +01:00
Andrew Murray
bd3f036a56 Fixed many style problems in OleFileIO resulting from indentation 2015-04-01 17:48:26 +11:00
Hugo
12752affcf Merge pull request #1161 from radarhere/patch-1
Removed unused variable in Jpeg2KEncode
2015-04-01 09:35:15 +03:00
Andrew Murray
2834b78982 Removed or commented unused variables from OleFileIO 2015-04-01 17:22:44 +11:00
Andrew Murray
b75ee4c5b6 Added tests for font paths without extensions and for preferring ttf extensions 2015-04-01 15:26:00 +11:00
Andrew Murray
3cd7f0e6f2 Removed unused variable in Jpeg2KEncode 2015-04-01 15:14:56 +11:00
Alex Clark
d8c69ef5aa Fix link; wording nit [ci skip] 2015-03-31 22:01:05 -04:00
Alex Clark
c562c55788 Camel case nit [ci skip] 2015-03-31 22:00:53 -04:00
Alex Clark
094a2ca592 I am aclark4life on GitHub [ci skip] 2015-03-31 21:48:45 -04:00
Andrew Murray
68d9860921 Changed list comprehension variable name to avoid redefinition 2015-04-01 12:45:08 +11:00
Andrew Murray
1199665033 Removed duplicate import from OleFileIO 2015-04-01 12:45:08 +11:00
Andrew Murray
1f5aeea463 Fixed incorrect import in FpxImagePlugin 2015-04-01 12:45:08 +11:00
Alex Clark
6572728275 We're going downtown [ci skip]
https://www.youtube.com/watch?v=QCz9CdOCh7w (Set release date for 2.8.0 happening in < 8 hours)
2015-03-31 21:44:07 -04:00
Alex Clark
f95f13c6fa Merge pull request #1107 from acdha/tidy-DecompressionBombWarning-docs
Tidy docs for DecompressionBombWarning
2015-03-31 21:38:05 -04:00
Alex Clark
1f6f358132 Update CHANGES [ci skip] 2015-03-31 21:36:52 -04:00
Alex Clark
9c37a29553 Merge pull request #982 from hugovk/cache
Re-enable test image caching
2015-03-31 21:36:24 -04:00
Alex Clark
b1517e7176 Update CHANGES [ci skip] 2015-03-31 21:14:32 -04:00
Alex Clark
0925c4adbb Merge pull request #1152 from hugovk/1104
Fix: Cannot identify EPS images
2015-03-31 21:12:55 -04:00
Alex Clark
2da49ae5ad Merge pull request #1159 from radarhere/health
Further health fixes
2015-03-31 21:02:57 -04:00
Alex Clark
0d64171481 Configure setuptools to run nosetests, fixes #729
http://nose.readthedocs.org/en/latest/setuptools_integration.html
2015-03-31 20:22:09 -04:00
Andrew Murray
440022e59f Added missing import in FpxImagePlugin 2015-04-01 11:21:15 +11:00
Andrew Murray
120982574a Moved __future__ import to the top of pilprint script 2015-04-01 11:21:15 +11:00
Alex Clark
5114425f6b Update CHANGES [ci skip] 2015-03-31 20:13:37 -04:00
Alex Clark
c1a8f29944 Merge pull request #1158 from radarhere/health
Health fixes
2015-03-31 19:57:02 -04:00
Andrew Murray
d3cab99d31 Removed unused import in pilconvert script 2015-04-01 10:33:44 +11:00
Andrew Murray
444d9d5731 Changed variable name foo since it has been blacklisted in health 2015-04-01 10:29:26 +11:00
Andrew Murray
192fa39fb7 Fixed duplicate import in test_imagecms 2015-04-01 09:56:12 +11:00
Andrew Murray
128280e5b8 Fixed duplicate import in Tests helper 2015-04-01 09:56:04 +11:00
Andrew Murray
0ca14909ed Fixed duplicate import in pilprint 2015-04-01 09:36:25 +11:00
Andrew Murray
d88a7b778f Added missing self argument in PyAccess 2015-04-01 09:36:24 +11:00
Andrew Murray
75a760e5d6 Fixed unused imports and removed or commented unused variables from FpximagePlugin 2015-04-01 09:35:45 +11:00
Alex Clark
174d9ac083 Add Image.open(url) tip from @mjpieters [ci skip] 2015-03-29 15:02:53 -04:00
Alex Clark
6151cfd411 Add 2.8.0 release notes to index [ci skip] 2015-03-28 07:34:47 -04:00
Alex Clark
144e45cbb7 Update CHANGES [ci skip] 2015-03-28 07:27:45 -04:00
Alex Clark
b3ea34fb88 Document #1151 [ci skip] 2015-03-28 07:22:14 -04:00
Alex Clark
aaa26f316a Merge pull request #1151 from mfitzp/open-http-image
Add support for HTTP response objects to Image.open()
2015-03-28 07:21:15 -04:00
Alex Clark
860a1dedf1 Prep 2.8.0
No ci skip here because let's see CI run w/new version numbers. I'm starting to think (again) this bump should happen immediately after the release instead of right before the next? But I know @wiredfool had some objection to this at some point. As a compromise, maybe we could change to 2.9.0dev immediately following the release of 2.8.0.
2015-03-27 07:02:02 -04:00
Alex Clark
508c8dbe00 Fix manifest [ci skip] 2015-03-27 06:56:34 -04:00
Martin Fitzpatrick
735d342608 Add support for HTTP response objects to Image.open()
HTTP response objects returned from `urllib2.urlopen(url)` or
`requests.get(url, stream=True).raw` are 'file-like' but do not
support `.seek()` operations. As a result PIL is unable to
open them as images, requiring a wrap in `cStringIO` or `BytesIO`.

This commit adds this functionality to `Image.open()` by way of
an `.seek(0)` check and catch on exception
`AttributeError` or `io.UnsupportedOperation`. If this is caught
we attempt to wrap the object using `io.BytesIO` (which will
only work on buffer-file-like objects).

This allows opening of files using both `urllib2` and `requests`, e.g.

    Image.open(urllib2.urlopen(url))
    Image.open(requests.get(url, stream=True).raw)
2015-03-26 13:25:26 +01:00
hugovk
b885c04388 EPS parser: don't index blank lines 2015-03-26 14:06:54 +02:00