Commit Graph

2475 Commits

Author SHA1 Message Date
etienne
2b844e7872 Merge commit '8b2e7ee48ac9317b79bb7f0053a9201ada8d7d08' into fix-issue-857 2014-09-02 14:50:01 -04:00
etienne
afc4a26e34 Fixed issue #857. When saving a JPEG and specifying 'keep' for quality or subsampling, if the source JPEG image is in grayscale mode, don't try to find the subsampling of the source, because grayscale images don't have any subsampling (it's only for color components).
For the moment the fix also ignores subsampling of CMYK JPEG because currently Pillow doesn't support encoding JPEG in YCCK mode (and subsampling doesn't make sense in CMYK, but Pillow permits saving CMYK JPEG with subsampling, that's a bug). This fix pass those errors silently, i.e. it doesn't raise an error when 'keep' is used but it's not possible to keep the subsampling (because the image is grayscale or CMYK). I think it's the proper behavior but I'm not sure.
2014-09-02 14:49:24 -04:00
wiredfool
8b2e7ee48a Additional dependencies [ci skip] 2014-08-26 14:48:17 -07:00
Hugo
72909aac4e Merge pull request #872 from wiredfool/test_libtiff_inheritance
Refactor inheritance tree of test_file_libtiff_small
2014-08-26 21:12:41 +03:00
wiredfool
3e361d800d Refactor inheritance tree of test_file_libtiff_small 2014-08-26 09:58:23 -07:00
wiredfool
0c94adc538 Merge pull request #864 from hugovk/make-j
Update WebP and build it and OpenJPEG with 4 job slots
2014-08-26 08:43:52 -07:00
Hugo
566448fbf0 Update CHANGES.rst [CI skip] 2014-08-26 09:17:54 +03:00
Hugo
4c26e08d8a Merge pull request #871 from wiredfool/windows_fixes2
Windows fixes
2014-08-26 09:17:23 +03:00
wiredfool
136345a5a5 allowing for libwebp* library names 2014-08-24 16:38:22 -07:00
wiredfool
1d58e711fe mp is a little twitchy on windows 2014-08-24 16:38:05 -07:00
wiredfool
9d00686f53 backup implementation of Round for windows platforms 2014-08-24 16:37:54 -07:00
hugovk
d0ec73602b Make OpenJPEG with 4 job slots - ~2.2 times faster (take 2) 2014-08-21 14:50:11 +03:00
hugovk
4b8b91965a Make OpenJPEG with 4 job slots - ~2.2 times faster 2014-08-21 14:11:35 +03:00
hugovk
30680bb384 Make WebP with 4 job slots - ~2.4 times faster 2014-08-21 14:02:48 +03:00
hugovk
70cf8c9431 Update WebP from 0.4.0 to 0.4.1 2014-08-21 13:46:58 +03:00
wiredfool
5d9107ee4c Merge pull request #859 from hugovk/test_file_jpeg2k_tempfile
Use tempfile() instead of /tmp/
2014-08-20 09:34:59 -07:00
Hugo
75a5127506 Update CHANGES.rst [CI skip] 2014-08-20 10:00:38 +03:00
Hugo
9f7a382b02 Merge pull request #856 from megabuz/tgainfo
Fix TGA files with image ID field
2014-08-20 09:57:04 +03:00
Alexey Buzanov
5dd0d377c9 rename test 2014-08-20 10:39:11 +04:00
Alexey Buzanov
f94b6b4025 flake8 and tests 2014-08-20 10:32:06 +04:00
Hugo
8922104a09 Need 'temp_' or 'temp.' in filename 2014-08-20 00:36:29 +03:00
Hugo
7ff78e518d Update CHANGES.rst [CI skip] 2014-08-20 00:23:49 +03:00
Hugo
74f45d4e12 Use tempfile() instead of /tmp/ 2014-08-20 00:13:30 +03:00
wiredfool
56e3b6047a Merge pull request #850 from hugovk/pyroma
Pyroma installation is slow on Py3, so just do it for Py2
2014-08-19 09:41:46 -07:00
wiredfool
cd092e1846 Update CHANGES.rst 2014-08-19 08:56:46 -07:00
wiredfool
2d634d3019 Bump Version/Changelog 2014-08-19 08:52:29 -07:00
wiredfool
347a1d8d95 J2k DOS fix -- CVE-2014-3598
Found and reported by Andrew Drake of dropbox.com
2014-08-19 08:25:40 -07:00
Hugo
3aa9326574 Merge pull request #843 from uvNikita/gif_mode_fix
Fixed wrong mode of gif image.
2014-08-19 17:50:49 +03:00
Alexey Buzanov
1bd4919a35 Fix tga files with image ID field 2014-08-19 17:53:51 +04:00
Alex Clark
735d45b175 Fix MANIFEST
include *.md
recursive-include Scripts *.sh
recursive-include Tests *.bw
recursive-include Tests *.cur
recursive-include Tests *.dcx
recursive-include Tests *.mpo
recursive-include Tests *.ras
recursive-include Tests *.rgb
recursive-include Tests *.sgi
2014-08-19 08:52:24 -04:00
Alex Clark ☺
e7a81164df Merge pull request #854 from hugovk/changelog
Link to 2,505-line changelog instead of showing it all on PyPI
2014-08-19 08:40:09 -04:00
Nikita Uvarov
778768c9bc Fixed test_optimize_full_l test case for python2. 2014-08-19 15:00:15 +03:00
Nikita Uvarov
78081a2498 Fixed test_optimize_full_l gif file test case. 2014-08-19 12:32:52 +03:00
Nikita Uvarov
9604cf814b Added test case for gif image (mode L): optimization turned on, but not needed. 2014-08-19 12:24:44 +03:00
Hugo
b56043c036 Remove 2,505-line changelog from description
It made the PyPI listing page very long and requires a lot of scrolling to get down to the files, annoying for downstream packagers.

Instead it's linked from the README. 

[CI skip]
2014-08-19 11:03:08 +03:00
Hugo
81e3379834 Link to CHANGES from README
And use absolute URLs for GitHub links so they work from PyPI.

[CI skip]
2014-08-19 10:53:31 +03:00
Hugo
30979d4dd4 Fix typo 2014-08-17 23:34:12 +03:00
Hugo
ce89d19691 No need to time now Travis has time tags
http://blog.travis-ci.com/2014-08-13-per-command-time-tags
2014-08-16 18:45:36 +03:00
Hugo
616d8cd4c0 Pyroma installation is slow on Py3, so just do it for Py2 2014-08-16 18:12:31 +03:00
Hugo
99cb19b671 Remove a rogue "=" from the end of a line
It wasn't there in the original PIL handbook: http://effbot.org/imagingbook/format-jpeg.htm

[CI skip]
2014-08-15 13:58:54 +03:00
wiredfool
e51b7ad7bf Updated Changes.rst [ci skip]
formatting
2014-08-13 09:51:05 -07:00
wiredfool
2e26bd454f Update Changes.rst [ci skip] 2014-08-13 09:49:50 -07:00
wiredfool
9cc0e47ec2 Merge pull request #845 from wiredfool/icns_cve
Icns DOS fix --  CVE-2014-3589
2014-08-13 09:45:42 -07:00
wiredfool
205e056f8f Icns DOS fix -- CVE-2014-3589
Found and reported by Andrew Drake of dropbox.com
2014-08-13 09:25:11 -07:00
Hugo van Kemenade
cc6610e4f3 Detail test-installed.py
[CI skip]
2014-08-12 16:37:49 +03:00
Hugo van Kemenade
6eb00f605f Update CHANGES.rst [CI skip] 2014-08-11 10:05:19 +03:00
Hugo van Kemenade
acd4f5f26f Merge pull request #844 from divergentdave/patch-1
setup.py: Close open file handle before deleting
2014-08-11 09:49:26 +03:00
David Cook
3bde04b263 setup.py: Close open file handle before deleting
When installing Pillow onto a Vagrant virtual machine with Linux as the guest OS, and Windows as the host OS, setup.py fails with the error "Text file busy." The temporary installation directory is a shared folder from the host OS, mounted in the guest OS, and the underlying Windows file system doesn't allow deleting the "multiarch" temporary file while a file handle for it is still open. This change closes the file handle once it is no longer being used, but before the file itself is unlinked.
2014-08-11 01:14:07 -05:00
Hugo van Kemenade
ae641c3d0f RST code formatting
[CI skip]
2014-08-08 13:54:14 +03:00
Hugo van Kemenade
884280d0e5 Update test instructions
[CI skip]
2014-08-08 13:51:06 +03:00