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
Andrew Murray
bd3f036a56
Fixed many style problems in OleFileIO resulting from indentation
2015-04-01 17:48:26 +11: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
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
0925c4adbb
Merge pull request #1152 from hugovk/1104
...
Fix: Cannot identify EPS images
2015-03-31 21:12:55 -04:00
Andrew Murray
440022e59f
Added missing import in FpxImagePlugin
2015-04-01 11:21:15 +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
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
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
Andrew Murray
3e9e95b00a
Changed truetype() to prefer .ttf extensions
2015-03-21 21:13:15 +11:00
Andrew Murray
84ec2af495
Allow truetype() to search for extensions other than .ttf
2015-03-21 21:13:15 +11:00
hugovk
b17384cfca
Tabs to spaces and other flake8 fixes
2015-03-21 10:32:26 +02:00
Hugo
cabbc5d599
Merge pull request #1123 from radarhere/font_variant
...
Added copy method font_variant() and accessible properties to truetype()
2015-03-21 10:15:57 +02:00
Andrew Murray
fb3fe4b877
Added documentation for font_variant() [ci skip]
2015-03-07 18:38:17 +11:00
hugovk
0b79c6e24a
Remove unreachable code (if 0)
2015-03-05 21:07:16 +02:00
Andrew Murray
7a798f8724
Added copy method font_variant() and accessible properties to truetype()
2015-03-04 00:00:18 +11:00
Andrew Murray
f644adbb05
Fixed binary conversion bug, and added corresponding tests
2015-03-02 09:56:47 +11:00
amoibos
aeb1e61aa7
let python do the endian stuff
2015-03-02 00:16:13 +11:00
Robin Lewis
7fafd09bf5
Document filename parameter as deprecated in truetype()
2015-02-23 12:23:01 +00:00
Robin Lewis
066faeb211
Reference non-deprecated argument in truetype documentation
2015-02-23 12:00:52 +00:00
wiredfool
d80c27dc3f
Merge pull request #1095 from hugovk/pickle_L_mode
...
Fix pickling L mode images with no palette
2015-01-30 11:39:50 -08:00
Hugo
95e9379f45
Merge pull request #1091 from wiredfool/repr_png
...
iPython display hook
2015-01-30 14:37:03 +02:00
hugovk
0f89322216
When unpickling, only put palette if there is one
2015-01-30 14:04:35 +02:00
wiredfool
8ebdc5b64d
Comment typo [ci skip]
2015-01-28 20:23:15 -08:00
wiredfool
8c2a7502a4
Correct the name
2015-01-28 10:02:04 -08:00
wiredfool
05fe86654c
Added _repr_png method for ipython display hooks
2015-01-28 09:35:31 -08:00
wiredfool
1e040feb1b
Adjust buffer size when quality=keep, fixes #148 (again)
2015-01-18 10:56:29 -08:00
Mikhail Korobov
52cbd123a2
DOC fix "Write Your Own File Decoder" link in Image API docs
2015-01-07 04:12:37 +05:00
wiredfool
0f05eb287a
Version Bump --2.7.0
2014-12-31 20:42:57 -08:00
wiredfool
6a7a6fbdb8
Fixed warning on docs building (url can't wrap), added parameters
2014-12-31 16:35:56 -08:00
wiredfool
1aed192554
Merge pull request #1054 from charleslaw/master
...
Look for OSX and Linux fonts in common places (fixes #370 )
2014-12-31 14:43:13 -08:00
Hugo
b3e09122e5
Merge pull request #1060 from wiredfool/png-dos
...
Fix potential PNG decompression DOS
2014-12-31 20:32:41 +02:00
wiredfool
0b75526ffe
Limit total text chunk size to 64k
2014-12-29 17:10:27 -08:00
Charles Law
1c6a89e4c2
default to using /usr/share when XDG_DATA_DIRS is empty or unset
2014-12-29 17:03:39 -08:00
wiredfool
6ffe9e1689
Merge pull request #1058 from hugovk/anntzer-tiff-resolution2
...
Tests for PR #1044 : Use underscores, not spaces, in TIFF tag kwargs
2014-12-29 15:23:20 -08:00
wiredfool
5390aa1692
Merge pull request #1055 from hugovk/test_psdraw
...
Update and test PSDraw
2014-12-29 15:17:23 -08:00
wiredfool
44286ba3c9
Fix for zlib.decompression bomb in iTXt,zTXt, and iCCP chunks
2014-12-28 22:49:52 -08:00
hugovk
c4d9bb6eaa
flake8
2014-12-27 23:07:41 +02:00
hugovk
c2f433e5ac
Remove unimplemented setink()
2014-12-27 22:41:56 +02:00
hugovk
8eb117dc9e
Fix for Python 3
2014-12-27 22:26:54 +02:00
Charles Law
17d720aebc
Partial Fix #370 : look for linux fonts in common places
2014-12-26 19:12:06 -05:00
Charles Law
4d2dd3ee7b
Partial Fix #370 : look for osx fonts in common places
2014-12-26 19:12:05 -05:00
Antony Lee
800480db52
Use underscores, not spaces, in TIFF tag kwargs.
...
kwargs with spaces ("x resolution", "y resolution", "resolution unit"
and "date time") are deprecated.
2014-12-09 15:17:33 -08:00