Commit Graph

17704 Commits

Author SHA1 Message Date
Joaquín Cuenca Abela
c68044bf7f Fix IOError when saving progressive JPEGs.
when the jpeg encoder sees the flags optimize or progressive (or progression)
it will write the full image in one shot.

The bufsize needs to be big enough to hold the entire image. The current heuristic
is that the entire compressed image will fit in width * height bytes, but this
heuristic is only applied to save operations with the flag "optimize" and not to
save operations with the flag "progressive".

This patch fixes this oversight.

(Btw, it will probably be a good idea to have a loop that retries with a bigger
bufsize in case this guess is not big enough.)
2013-08-02 14:36:46 +02:00
Alex Clark
dcb6eef590 Add history [ci skip] 2013-07-31 13:00:53 -04:00
Alex Clark ☺
b72471c8fe Merge pull request #309 from yoavweiss/master
Add RGBA support to ImageColor
2013-07-31 09:55:43 -07:00
Alex Clark
e8906c24e0 Update history [ci skip] 2013-07-31 11:23:05 -04:00
Alex Clark
f6da8c24dc Revert "Added IGNORE_DECODING_ERRORS flag to ImageFile allowing corrupted images to load"
This reverts commit 156a443cdf.
2013-07-31 11:22:38 -04:00
Alex Clark
50e3e1185a Add history 2013-07-30 16:49:24 -04:00
Alex Clark ☺
ba82e34703 Merge pull request #311 from cezarsa/master
Added IGNORE_DECODING_ERRORS flag to ImageFile allowing corrupted images to load
2013-07-30 13:48:10 -07:00
Cezar Sa Espinola
156a443cdf Added IGNORE_DECODING_ERRORS flag to ImageFile allowing corrupted images to load 2013-07-30 16:38:56 -03:00
Yoav Weiss
37cb2413d5 Fix imagecolor test issue 2013-07-30 20:37:28 +02:00
Yoav Weiss
c117dcae34 Add RGBA support to ImageColor 2013-07-30 16:43:40 +02:00
Alex Clark
aad42b88c4 Add history 2013-07-25 14:12:31 -04:00
Alex Clark ☺
7fe5fe6dbb Merge pull request #306 from mjpieters/master
Fix for #304: test for `str`, not `"utf-8"`.
2013-07-25 10:53:13 -07:00
Martijn Pieters
97f1cd55ee Fix for #304: test for str, not "utf-8".
The code wants to produce a `str` object for the given Python version (which is the right thing to do here).
2013-07-25 18:21:08 +01:00
Alex Clark
a1682c70d2 Add history 2013-07-25 12:32:19 -04:00
Alex Clark ☺
c08721aa0b Merge pull request #303 from mnowotka/patch-1
Update _util.py
2013-07-25 09:30:59 -07:00
Michał Nowotka
702fc75ee3 Update _util.py
Fixing missing import.
2013-07-25 17:25:18 +01:00
Alex Clark ☺
78dc47ca2b Merge pull request #301 from freyes/add-to-gitignore
Added "*.so" and "docs/_build" to gitignore
2013-07-24 13:47:18 -07:00
Felipe Reyes
9f4f09f135 Added "*.so" and "docs/_build" to gitignore 2013-07-24 20:44:13 +00:00
Alex Clark
e7e978e811 Add history 2013-07-24 16:15:51 -04:00
Alex Clark ☺
b97eb321c4 Merge pull request #300 from freyes/add-new-exif-tag-codes
Added some missing exif tags
2013-07-24 13:14:59 -07:00
Felipe Reyes
64cc8f994d Added some missing exif tags 2013-07-24 18:46:21 +00:00
Alex Clark
c74738a964 Add history 2013-07-23 13:42:29 -04:00
Alex Clark ☺
5d2c8ebbac Merge pull request #299 from wiredfool/ucs
Fail on all import errors
2013-07-23 10:37:48 -07:00
wiredfool
e3e0638a5f Fail fast if there's an import error on _imaging 2013-07-23 10:17:15 -07:00
Freek Dijkstra
d24a419299 Warnings if imaging library has wrong UCS support.
Raise exceptions for unknown errors.
2013-07-23 10:44:27 +02:00
Alex Clark
2f803e653c Rename 2013-07-22 14:08:45 -04:00
Alex Clark
0884edd7f3 Rename 2013-07-22 13:47:47 -04:00
Alex Clark
b8b5cb3755 Add history 2013-07-22 13:46:08 -04:00
Alex Clark ☺
159c4f9fa3 Merge pull request #295 from lmollea/master
Fixed windows fallback (wasn't using correct file in windows/fonts)
2013-07-22 10:34:27 -07:00
lmollea
763be8614d Fixed windows fallback (wasn't using correct file in windows/fonts) 2013-07-22 14:44:40 +02:00
Alex Clark
5d158097da Add history 2013-07-19 16:39:00 -04:00
Alex Clark ☺
7140e3e58b Merge pull request #293 from freyes/add-docstrings-ImageFile
Transformed docstrings of ImageFile and ImageFileIO modules
2013-07-19 13:36:55 -07:00
Felipe Reyes
a560022341 Transformed docstrings of ImageFile and ImageFileIO modules 2013-07-19 15:11:26 +00:00
Alex Clark
9d22c16d53 Add history 2013-07-14 06:08:22 -04:00
Alex Clark ☺
5e1e2fb203 Merge pull request #289 from cgohlke/patch-3
Restore compatibility with ISO C
2013-07-14 03:07:43 -07:00
Alex Clark
f7c73ebe7c Merge branch 'master' of github.com:python-imaging/Pillow 2013-07-14 06:07:04 -04:00
Alex Clark
41382e44e8 Add history 2013-07-14 06:06:58 -04:00
Alex Clark ☺
368683f176 Merge pull request #288 from cgohlke/patch-2
Use correct format character for C int type
2013-07-14 03:05:51 -07:00
Christoph Gohlke
61879e217d Restore compatibility with ISO C 2013-07-13 20:26:12 -07:00
Christoph Gohlke
ca404aed61 Use correct format character for C int type 2013-07-13 18:45:28 -07:00
Alex Clark
988c28cf92 Add history 2013-07-13 21:26:02 -04:00
Alex Clark ☺
1841fbacf3 Merge pull request #287 from cgohlke/patch-1
Allocate enough memory to hold pointers
2013-07-13 18:23:46 -07:00
Christoph Gohlke
aa71626dd0 Allocate enough memory to hold pointers 2013-07-13 18:17:14 -07:00
Alex Clark
2798914be2 Add history 2013-07-11 06:39:27 -04:00
Alex Clark ☺
f6766ad960 Merge pull request #284 from wiredfool/g4_fillorder
G4 fillorder
2013-07-11 03:38:18 -07:00
wiredfool
db49dbf9de Ignore fillorder=2 when reading using libtiff 2013-07-10 22:36:55 -07:00
wiredfool
d67d4116b5 tests for issue #279 2013-07-10 22:24:11 -07:00
wiredfool
ac1d43bdef 8 character tabs -> spaces 2013-07-10 22:21:49 -07:00
Alex Clark
d888e70f2d Add "official" support for CentOS 2013-07-10 14:29:54 -04:00
Alex Clark
72ea06f445 Add history 2013-07-09 15:52:31 -04:00