Commit Graph

6456 Commits

Author SHA1 Message Date
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
Hugo
1922a0deac Merge pull request #2653 from radarhere/landscape
Remove Landscape/health badge
2017-08-06 08:56:36 +03:00
Andrew Murray
af4d830ce9 Remove Landscape/health badge [ci skip] 2017-08-06 12:39:04 +10:00
Hugo
d039be7cdd Python 3 division fix 2017-08-04 14:51:02 +03:00
Hugo
382db4442c Test animated FLI 2017-08-04 14:41:28 +03:00
Hugo
47aa59a046 Add from https://samples.libav.org/fli-flc/
https://samples.libav.org/ says:

This is the Libav samples collection.
You can find samples of various common and uncommon
multimedia formats here. The size of the collection
currently is 54GB and growing.

You are free to download any samples you want, but
if you want to download more than just a few or want
to mirror the whole collection please send a mail to
webmaster(AT)libav(DOT)org *before* you start
and ask for permission.

We can also ship the samples collection to you for a
reasonable fee, inquire for details.

The best way to download samples is with rsync. If you decide
to fetch a large amount (more than 1GB), please limit the rate
to no more than 50 kBps (use the --bwlimit option of rsync).

Please be aware that this samples collection contains a lot
of files that are very obscure, broken in various ways or
are just simply out of use. Hence, it doesn't make sense
to download all of them, unless you are developing a player
applic
2017-08-04 12:39:19 +03:00
Istvan Fehervari
0477278c68 Fixed bc5 decoding
BC5 decoding uses only 2 channels instead of 4. The current algorithm did not initialize the RGBA struct which resulted in random values in the output image. This commit should initialize the decoded RGBA struct, thus setting B and A values to default (0).
2017-08-03 11:07:51 +02:00
Mickael B
7ee29bfe1d change uint32_t to UINT32 since stdint.h is not defined in old Visual C++ versions 2017-07-29 13:35:07 -04:00
Mickael B
4994f64006 add stdint.h for uint32_t definition 2017-07-29 02:48:35 -04:00
Mickael B
8f83c3fa4a store SgiRleDecoder elements in SGISTATE struct 2017-07-29 02:39:37 -04:00
Mickael B
e3e0cad8d4 fix compiler warnings 2017-07-29 02:02:14 -04:00
Andrew Murray
eaffb1414a Added test 2017-07-29 10:20:19 +10:00
Andrew Murray
1df63eeb1a Added file pointer save to SpiderImagePlugin 2017-07-29 10:20:13 +10:00
Mickael Bonfill
325503320e add support of python 3's bytearray 2017-07-28 17:30:55 -04:00
Mickael Bonfill
dad56cb401 add unit tests 2017-07-28 17:12:46 -04:00
Mickael Bonfill
be9f0a938f Use file descriptor instead of chunks 2017-07-28 15:58:17 -04:00
Mickael Bonfill
0fdbb6a10c Fix RLE decompression by chunks 2017-07-27 18:51:10 -04:00
Hugo
8400660083 Move so isn't installed globally 2017-07-27 14:12:28 +03:00
Mickael Bonfill
99079ab755 use UINT32 instead of ULONG 2017-07-26 17:01:45 -04:00
Hugo
2512400d6d Update CHANGES.rst
[CI skip]
2017-07-25 11:03:36 +03:00
Hugo
90886a4e59 Merge pull request #2632 from wiredfool/issue_2628
Fix JPEG DPI when EXIF is invalid
2017-07-25 11:01:29 +03:00
Mickael B
c352ef7e8a Avoid memory reallocation and support Y orientation in 16bits uncompressed read 2017-07-25 01:19:20 -04:00
Joe Hultgren
0272dc2736 Add targa version 2 footer
Add the footer that is part of the version 2 spec. Some applications don't like images without the footer. Such as perforce's p4merge tool.
2017-07-24 13:49:18 -07:00
Hugo
ff81201971 Fix unexpected keyword argument 'align' 2017-07-23 23:58:05 +03:00
Hugo
10c7e20045 Test for #2639 2017-07-23 23:56:02 +03:00
Hugo
96abb60059 Add newlines to error message for clarity 2017-07-23 23:39:40 +03:00
Mickael B
3f5848c273 Add uncompressed 16bits read for SGI Images 2017-07-23 14:41:48 -04:00
Mickael B
1343f6c587 avoid divisions to keep integer 2017-07-22 11:00:15 -04:00
Mickael B
23a15c1ece fix integer for seek 2017-07-22 10:43:43 -04:00
Mickael B
ed4ee2f061 fix variable initialization in loops 2017-07-22 03:56:01 -04:00
Mickael B
f2240e8831 delete raise call 2017-07-22 03:42:55 -04:00
Mickael B
128d63892d add RLE decompression for SGI images 2017-07-22 03:34:06 -04:00
Andrew Murray
7397c23292 Updated redirect URL [ci skip] 2017-07-22 14:22:50 +10:00
Mickael B
9af428a049 Revert Sgi Plugin 2017-07-21 21:43:31 -04:00
Mickael B
bf0d08e2be Updating fork 2017-07-21 21:25:59 -04:00
Oliver Tonnhofer
9e7de70bac Delete transparency info when convert'ing RGB/L to RGBA
info['transparency] was not removed when an RGB or L image
was converted to RGBA. This could result in unexpected behavior
when saving the resulting image.

Other image conversions already delete or update the transparency
info. There is a shortcut for RGB/L to RGBA which missed this.
2017-07-18 15:00:09 +02:00
wiredfool
908fffdd2c Test for https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612 2017-07-18 01:06:54 -07:00
wiredfool
7a8161162f fix for https://github.com/python-pillow/Pillow/issues/2628#issuecomment-315962612 2017-07-18 00:54:11 -07:00
Eric Soroos
4deb447f59 travis runs for fedora 24 and 26 in docker 2017-07-17 14:43:13 -07:00
wiredfool
0cd84cf9b3 Update CHANGES.rst [ci skip] 2017-07-16 16:32:19 +01:00
wiredfool
c58dd9bcb3 Merge pull request #2624 from radarhere/getsize_emptystring
Added fix for font getsize on empty string
2017-07-16 16:30:15 +01:00
wiredfool
a28e89be83 Update CHANGES.rst [ci skip] 2017-07-16 16:28:29 +01:00
wiredfool
377bbc781e Merge pull request #2626 from radarhere/imagedraw
Improved ImageDraw documentation
2017-07-16 16:27:47 +01:00
wiredfool
8bf9de3310 Update CHANGES.rst [ci skip] 2017-07-16 16:23:57 +01:00
wiredfool
730cf93c32 Merge pull request #2627 from radarhere/alpha_composite
Corrected alpha_composite args documentation
2017-07-16 16:22:52 +01:00