Andrew Murray
58b5c9187d
Replaced absolute PIL imports with relative imports ( #2349 )
2017-01-17 13:22:18 +00:00
wiredfool
8dd19e6c33
refactor out postprocessing hack to load_end in PcdImageFile
2017-01-01 12:04:59 +00:00
wiredfool
ba5f9b88da
Merge pull request #2223 from wiredfool/handles_eof
...
Removed the handles_eof flag in the decoder, as there are no users of it
2016-12-13 19:48:55 +00:00
wiredfool
372b1abe69
expand tile element names, don't attempt to mmap if args has < 3 elements
2016-11-22 02:46:54 -08:00
wiredfool
90760a5f30
Removed the handles_eof flag in the decoder, as there are no users of it
2016-11-14 07:47:02 -08:00
wiredfool
22ff3f4358
Vulnerable map function is not called on windows
2016-10-03 07:42:48 -07:00
Marcus Brinkmann
c74e45e87c
Force reloading palette when using mmap in ImageFile.
2016-09-29 14:54:25 +02:00
Andrew Murray
ba0e26ae84
Removed outdated comment
2016-09-24 00:18:31 +10:00
Andrew Murray
72d5218080
Flake8 fixes
2016-09-03 12:17:22 +10:00
wiredfool
533f4145bb
return values
2016-06-27 00:58:06 -07:00
wiredfool
653b170385
incorrect use of whitespace
2016-06-27 00:58:05 -07:00
wiredfool
d3b0413780
Initial take for removing the Incremental decoder due to threading issues. J2k tests pass, other tests fail
2016-06-27 00:58:05 -07:00
Henrique Dante de Almeida
a7c58303ca
Make ImageFile load images in read-only mode
...
The code path for mmapped files unnecessarily loaded images in
read-write mode and had a long standing FIXME message. This patch
uses mmap.ACCESS_READ, which is platform independent to fix this
issue.
2016-04-27 09:39:51 -03:00
Andrew Murray
9014517602
Removed logger exception
2015-12-10 08:39:26 +11:00
wiredfool
4a8a983e6a
Merge pull request #1398 from mrTable/master
...
Check flush method existence for file-like object
2015-10-01 07:54:26 -07:00
homm
613f1e241e
do not raise on broken images
2015-09-15 19:11:45 +03:00
homm
1d236f0262
unused var
2015-09-08 17:43:12 +03:00
homm
b078ad4599
raise IOError in all cases when image can't be loaded
2015-09-08 17:43:12 +03:00
homm
b8b3cdc146
fix truncated images loading
2015-09-08 17:43:11 +03:00
Andrew Murray
d21430234e
Improved consistency of checks for flush
2015-09-02 23:48:22 +10:00
Andrew Murray
c6b13d294f
Flake8 fixes
2015-08-25 22:27:18 +10:00
Andrew Murray
f5df0b86fc
Fixed PSDraw stdout Python 3 compatibility
2015-07-31 20:59:59 +10:00
Antony Lee
4e754e9c55
Use logging instead of print.
...
cf. #1191 .
Only TiffImagePlugin and OLEFileIO still rely on (their own) DEBUG flag.
I left TiffImagePlugin as it is because I hope #1059 gets merged in
first, and OLEFileIO because it uses its own logic.
Untested, as usual.
2015-06-29 12:39:50 -07:00
Andrew Murray
77e2878734
Fixed redefining built-ins
2015-06-02 00:09:18 +10:00
Andrew Murray
3c7e37d2d7
Replaced old-style classes
2015-05-27 00:07:21 +10:00
Andrew Murray
ee34d6843b
Further health fixes
2015-04-24 18:24:52 +10:00
George Davaris
68663ad352
Define t variable in a more appropriate place
2015-04-01 10:48:28 +01:00
George Davaris
5a49375d4f
Fix UnboundLocalError in ImageFile
2015-03-11 15:37:02 +00:00
hugovk
1de128d6b6
Merge branch 'master' into flake8
2014-09-14 10:23:51 +03:00
Josh Ware
94194ed248
Cleaning up.
...
Reduced memory limit to 1GB
2014-09-12 22:09:27 -07:00
Josh Ware
7407371deb
NULLing pointers on cleanup
2014-09-12 22:09:27 -07:00
Josh Ware
3da6768a72
Testing whether e.cleanup causes segfaults
2014-09-12 22:09:27 -07:00
Josh Ware
caa95a26b2
Added memory leak fix and testing for Encoder
2014-09-12 22:09:27 -07:00
Josh Ware
7db19efe75
Reduced JPEG2000 test iterations, and added cleanup for decoding using PyPy
2014-09-12 22:09:27 -07:00
hugovk
8de95676e0
flake8
2014-08-26 16:47:10 +03:00
wiredfool
d30eb007ef
Fix scrambled XPM image, don't mmap when load_read/load_seek is defined. Fixes #806
2014-07-18 10:40:08 -07:00
wiredfool
54173d2c67
Cherry-pick of portions of patch a500ca1393
, many shortcut ops added, no functional changes
2014-05-09 21:36:15 -07:00
Alastair Houghton
d6b8f0f666
Added a JPEG 2000 decoder based on OpenJPEG.
2014-03-13 11:46:47 +00:00
homm
0a256f9e56
fix UnboundLocalError: local variable 't' referenced before assignment
2014-01-15 16:55:10 +04:00
Stephen Johnson
348daf9490
Document ImageFile.Parser
2013-10-12 13:57:27 -07:00
wiredfool
258434b8ef
Fix test failures for Pypy 2.1 around memory mapping
2013-10-02 09:56:29 -07: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
Cezar Sa Espinola
156a443cdf
Added IGNORE_DECODING_ERRORS flag to ImageFile allowing corrupted images to load
2013-07-30 16:38:56 -03:00
Felipe Reyes
a560022341
Transformed docstrings of ImageFile and ImageFileIO modules
2013-07-19 15:11:26 +00:00
Alex Clark
bb1b3a532c
Cleanup WS, courtesy of @Arfrever
...
find * -type f "-(" -name "*.bdf" -o -name "*.c" -o -name "*.h" -o -name "*.py" -o -name "*.rst" -o -name "*.txt" "-)" -exec sed -e "s/[[:space:]]*$//" -i {} \;
2013-06-30 18:42:19 -04:00
Alex Clark
fd29e707e9
Apply @Arfrever patch, fixes #258
2013-06-30 07:04:42 -04:00
wiredfool
158cdbe8db
Enabling cleanup
...
Enabling the cleanup call in ImageFile.load
2013-05-16 08:32:24 -06:00
wiredfool
f6381ba00c
Added cleanup method to prevent memory leaks from truncated jpeg decodes
2013-05-15 21:16:37 -07:00
wiredfool
2a743c9527
JpegImagePlugin sets bufsize for optimized images
2013-03-22 22:27:12 -07:00
Alex Clark
3020c16eaa
Fix imports
2013-03-07 11:20:28 -05:00