Commit Graph

6110 Commits

Author SHA1 Message Date
Alexander
19a8649589 create dirty images for some operations 2017-08-06 14:22:58 +03:00
Alexander
7a1e70d997 new internal API function ImagingNewDirty 2017-08-06 14:22:58 +03:00
Alexander
0649da02c6 fix tests on python 3 2017-08-06 14:12:55 +03:00
Alexander
0990dadd6d use accurate im->linesize instead of strlen(mode) approximation 2017-08-06 14:12:55 +03:00
Alexander
d55557152b rename ImagingNewBlock → ImagingAllocateBlock
rename ImagingNewArray → ImagingAllocateArray
new utility function with old name ImagingNewBlock
call ImagingNewPrologue outside of ImagingAllocateBlock and ImagingAllocateArray
2017-08-06 14:12:55 +03:00
Alexander
eafa258bd1 destroy image and set MemoryError on overflow check failure 2017-08-06 14:12:55 +03:00
Alexander
6b50ba07fd add tests for Image.new modes 2017-08-06 14:12:55 +03:00
Alexander
ab92adf7c9 move ImagingNewEpilogue functionality to ImagingNewPrologueSubtype
doublechecked: no im->image or im->image8 or im->image32 access
between ImagingNewPrologue and ImagingNewEpilogue anywhere
2017-08-06 14:12:55 +03:00
Alexander
fd9cf03d01 FIX memory leak
ImagingNewEpilogue now is always success
The Imaging object itself is freed through ImagingDelete in case
when memory is not allocated in ImagingNewBlock or ImagingNewArray
2017-08-06 14:12:55 +03:00
Alexander
152104bba3 check args before allocate memory 2017-08-06 14:12:55 +03:00
Alexander
430c53707f no reasons to release GIL for one calloc 2017-08-06 14:12:55 +03:00
wiredfool
acb19d8e45 4.2.0 version bump 2017-07-01 05:46:24 -07:00
wiredfool
fa623bd075 Merge pull request #2602 from wiredfool/release_notes
Release notes 4.2.0 [ci skip]
2017-07-01 12:49:58 +01:00
wiredfool
27ecd0362f Update CHANGES.rst 2017-07-01 12:44:12 +01:00
wiredfool
58b7eacce8 Merge pull request #2604 from radarhere/docs
Improved append_images documentation
2017-07-01 12:43:53 +01:00
wiredfool
4cbece6f11 Merge pull request #2603 from radarhere/wording
Fixed typos and wording
2017-07-01 12:36:42 +01:00
wiredfool
d48d635c81 Remove callout for Ubuntu 12.04, EOL 2017-07-01 04:36:08 -07:00
wiredfool
b139b46046 Test matrix updates 2017-07-01 04:34:46 -07:00
Andrew Murray
e24aaa60a2 Improved append_images documentation [ci skip] 2017-07-01 21:34:41 +10:00
wiredfool
e2af48ba16 Update CHANGES.rst [ci skip] 2017-07-01 12:19:34 +01:00
Andrew Murray
892075a77e Fixed typos [ci skip] 2017-07-01 21:16:49 +10:00
Andrew Murray
b713330b00 Fixed wording [ci skip] 2017-07-01 21:14:41 +10:00
wiredfool
d669a89f64 Merge pull request #2585 from wiredfool/centos
Test support for centos/amazon linux
2017-07-01 12:12:27 +01:00
Eric Soroos
65c6051792 turn on centos, amazon linux 2017-07-01 03:46:49 -07:00
Eric Soroos
20da797fce updates for centos/amazonlinux 2017-07-01 03:46:49 -07:00
wiredfool
12316a70cb Update CHANGES.rst [ci skip] 2017-07-01 11:44:44 +01:00
wiredfool
b9b5d39f2b Merge pull request #2595 from wiredfool/issue_1911
Image.Image.alpha_composite Added
2017-07-01 11:43:58 +01:00
wiredfool
0779b49c0f Release notes 4.2.0 [ci skip] 2017-07-01 03:30:48 -07:00
wiredfool
6e2a978319 Update CHANGE.rst [ci skip] 2017-07-01 10:56:38 +01:00
wiredfool
8feac899dd Merge pull request #2576 from wiredfool/pr_2284
Complex Text Support
2017-07-01 10:45:18 +01:00
nediamond
d1b66e9dfd Added threshold parameter to ImageDraw.floodfill (#2599)
* added thresh option and test

* fixed up, test works and passes

* Update test_imagedraw.py

* Update test_imagedraw.py

* Update ImageDraw.py

* removed pypy skip decorator from thresh test

* Update ImageDraw.py
2017-07-01 10:37:02 +01:00
wiredfool
1eedfe55db Install updates for raqm 2017-07-01 02:34:08 -07:00
wiredfool
d2e8da1c30 release notes 2017-06-30 22:58:14 +01:00
wiredfool
2c6cf03de1 test features in get size 2017-06-30 22:57:57 +01:00
wiredfool
9f7aae3505 Doc changes/additions 2017-06-29 07:02:02 -07:00
wiredfool
90a9913705 Font.getsize needs direction and features 2017-06-29 07:01:38 -07:00
wiredfool
919150277e Update Changes.rst [ci skip] 2017-06-29 13:59:50 +01:00
wiredfool
1c16baca51 Merge pull request #2588 from radarhere/gs
Added dBATCH parameter to ghostscript command
2017-06-29 13:59:16 +01:00
wiredfool
246837477e Update Changes.rst [ci skip] 2017-06-29 13:26:30 +01:00
wiredfool
9bc50d8f5c Merge pull request #2596 from Darou/master
Adjust buffer size when icc_profile > MAXBLOCK (issue #148)
2017-06-29 13:18:29 +01:00
wiredfool
dc04930699 Merge pull request #2517 from wiredfool/single_version
RFC: Specify Version in one place
2017-06-29 13:17:02 +01:00
wiredfool
92b8db1935 Docs, wording 2017-06-29 05:14:43 -07:00
Fran Barba
29c622dd3d Fixed typo biger > bigger 2017-06-29 11:21:19 +02:00
wiredfool
14293ea4b1 Tests pass on osx 2017-06-29 01:50:29 -07:00
Eric Soroos
109e10d6b7 cmake dependency 2017-06-28 21:29:57 +00:00
Eric Soroos
57632d56d7 Use the cmake version of raqm 2017-06-28 21:06:38 +00:00
Fran Barba
a7d75c4b21 Applied Hugovk recommendations 2017-06-28 12:12:44 +02:00
Fran Barba
ebaa509d66 Adjust buffer size when icc_profile > MAXBLOCK (issue #148)
We were encountering some errors when saving specific JPEG images.
The error was shown in stderr as:
  IOError: encoder error -2 when writing image file

And on stdout it printed:
    Suspension not allowed here

The problem was the bufsize not contemplating the icc_profile block.
2017-06-28 12:11:33 +02:00
wiredfool
c7efd0bf6d re-organized the parameters, moved size specification to overlay tuple 2017-06-27 22:03:44 +01:00
wiredfool
1d33dfbced Added source point parameter for Image.Image.alpha_composite 2017-06-27 22:03:44 +01:00