Konstantin Kopachev
e91b851fdc
Add reading old-JPEG compressed TIFFs
...
Old-style JPEG compression in TIFFs are able to be read using Strip/Tile APIs. Although, it should be possible to read them using Scanline API, it does not work for some reason. Anyway, reading subsampled YCbCr formats through Strip/Tile/Scanline libtiff API does not de-subsample the data, so caller should unpack data to whatever format is appropriate. New-style JPEG compressed images were already read through libtiff as RGB images (https://github.com/python-pillow/Pillow/pull/3227 ). Unfortunately, there is no flag to ask libtiff to de-subsample old jpeg, but it provides a way to read any image as 32bit RGBA. This commit adds ability to read old-style JPEG TIFFs through reading *all* YCbCr images as RGBX using Tile and Strip reading API. This supersedes previous work (PR #3227 ) to read new-style JPEG-TIFFs.
2018-12-10 10:07:41 -08:00
Hugo
9eb36da0b8
Merge pull request #3460 from radarhere/check_png_dos
...
Corrected TypeError in Python 3
2018-11-16 23:26:49 +02:00
Hugo
6a63693d23
Merge pull request #3459 from radarhere/core_resources
...
Added __main__ code to test_core_resources
2018-11-16 17:55:46 +02:00
Andrew Murray
61397de88b
Check quality_layers type
2018-11-16 23:31:42 +11:00
Andrew Murray
9a1c3915ae
Corrected TypeError in Python 3
2018-11-13 21:45:52 +11:00
Andrew Murray
3ff4b54050
Added __main__ code
2018-11-12 19:54:26 +11:00
Hugo
a568a8730e
flake8: E302 expected 2 blank lines, found 1
2018-11-11 19:01:11 +02:00
Hugo
ceebfc6fe8
flake8: E501 line too long
2018-11-11 19:01:11 +02:00
Hugo
254f959c3a
flake8: E127 continuation line over-indented for visual indent
2018-11-11 19:01:11 +02:00
Hugo
94c94eb1f7
flake8: E128 continuation line under-indented for visual indent
2018-11-11 19:01:11 +02:00
Hugo
717add44b0
flake8: E201 whitespace after '('
2018-11-11 19:01:11 +02:00
Hugo
8a6f2b9de8
flake8: E711 comparison to None should be 'if cond is None:'
2018-11-11 19:01:10 +02:00
Hugo
eb9aee7048
flake8: F841 local variable is assigned to but never used
2018-11-11 19:01:10 +02:00
Hugo
302f86292c
Merge pull request #3392 from hugovk/update-tests
...
Update tests
2018-11-11 18:52:11 +02:00
Andrew Murray
52c175d1bc
Added context manager, __del__ and close methods
2018-11-11 16:00:17 +11:00
Hugo
8feed91ec1
Merge pull request #3454 from radarhere/imagegrab
...
Do not play sound when running screencapture command
2018-11-10 12:48:01 +00:00
Andrew Murray
747eccbfc2
Close exclusive fp on open exception
2018-11-09 11:35:08 +11:00
Andrew Murray
40c6e4f136
Do not play sound when running screencapture command
2018-11-08 06:05:45 +11:00
Hugo
ed10276a6b
Merge pull request #3418 from radarhere/webp_fp
...
Only close existing fp in WebP if fp is exclusive
2018-10-31 09:16:53 +02:00
Hugo
e12aa375ec
Merge pull request #3406 from Nazime/negativeindex
...
Add negative index to PixelAccess
2018-10-27 23:27:15 +03:00
Hugo
4530f55c61
Merge pull request #3385 from radarhere/gif_background
...
Change tuple background to global color table index when saving as GIF
2018-10-24 22:34:40 +03:00
Hugo
5df41b4399
Unnecessary generator - rewrite as a list comprehension
2018-10-24 22:29:56 +03:00
Hugo
088d04470e
Unnecessary list comprehension - 'tuple' can take a generator
2018-10-24 22:29:56 +03:00
Hugo
d69ef6a529
Remove redundant parentheses
2018-10-24 22:29:56 +03:00
Hugo
619e5fde8d
Remove unused local variables
2018-10-24 22:29:01 +03:00
Hugo
bac99bd5ae
Add assert for previously unused 'lut' variable
2018-10-24 22:29:01 +03:00
Hugo
4352edb1ec
Assert all images in loop
2018-10-24 22:29:01 +03:00
Hugo
fc3a159c87
More specific exception clause
2018-10-24 22:29:01 +03:00
Hugo
cb8a4bac21
Use set literal
2018-10-24 22:29:01 +03:00
Hugo
bab194b6f5
Fix DeprecationWarning: invalid escape sequence
2018-10-24 22:29:01 +03:00
Hugo
a3b0659790
flake8
2018-10-24 22:29:01 +03:00
Hugo
d1ca4916e0
Use more specific assertions
2018-10-24 22:29:01 +03:00
Hugo
901c1e2aea
Simplify test skipping
2018-10-24 22:29:01 +03:00
Andrew Murray
bd9cfb124b
Added ImageGrab.grabclipboard test
2018-10-22 18:55:16 +11:00
Andrew Murray
467d2089be
Enabled ImageGrab.grab test on AppVeyor
2018-10-22 18:39:07 +11:00
Andrew Murray
94925c5057
Merge pull request #3423 from hugovk/fix-feature-tests
...
Fix some tests
2018-10-22 08:53:26 +11:00
Hugo
06ad343d35
Simplify skipping
2018-10-21 17:47:35 +03:00
Hugo
e33812c56c
Remove redundant parentheses
2018-10-21 17:05:40 +03:00
Hugo
cbba2c24bf
Remove unused helper method
2018-10-21 17:05:14 +03:00
Hugo
cfc4c3e101
Switch check_ to test_ to enable them
2018-10-21 16:44:12 +03:00
Hugo
a1b9f94d60
skipUnless takes a condition and _reason_
2018-10-21 16:42:41 +03:00
Andrew Murray
929f7397db
Line too long
2018-10-21 18:26:08 +11:00
Andrew Murray
c7d924fd85
Too many blank lines
2018-10-21 18:11:50 +11:00
Andrew Murray
e84a78d828
Only close existing fp if fp is exclusive
2018-10-19 20:12:08 +11:00
Alexander
e26696cb8a
skip old test
2018-10-18 10:33:52 +03:00
Alexander
e7aa44f58c
add test for regression
2018-10-18 10:32:17 +03:00
Nazime
63a0b801b4
misspelled variable name
2018-10-15 13:06:08 +02:00
Nazime
86324a842d
Add setting negative pixels and unittest
2018-10-15 12:51:24 +02:00
Andrew Murray
a7eb2ea9cc
Change tuple background to global color table index when saving
2018-10-02 20:52:07 +10:00
Hugo
2fa54408d4
Merge pull request #3203 from radarhere/size
...
Changed Image size property to be read-only by default
2018-09-30 14:35:35 +03:00