Commit Graph

210 Commits

Author SHA1 Message Date
wiredfool
460480dfff Merge pull request #1847 from wiredfool/revert-1813-DIB_1293
Revert 1813, plus second commit with tweaks.
2016-05-01 10:31:59 +01:00
wiredfool
219182beda Removing all transparency from the test image 2016-04-29 21:17:18 +01:00
wiredfool
300ca19a0e Merge pull request #1854 from hugovk/tga-rle
Test TGA RLE file
2016-04-29 20:44:32 +01:00
hugovk
272f11434d convert hopper.png -compress lzw hopper_lzw.tif 2016-04-21 23:09:23 +03:00
hugovk
ad299ea9e5 Source: https://samples.libav.org/image-samples/TGA/ 2016-04-21 17:49:25 +03:00
wiredfool
23a847c532 Fixes DIB image format
The DIB image format uses the 40 byte BMP header, followed by 3 masks
for RGB channels. We were reading 4 masks, consuming the first pixel
of the image.

Mostly fixes issue #1293. Remaining issue: alpha channel is actually a
transparency mask.
2016-04-19 20:17:36 +01:00
wiredfool
faeb269e30 Revert "Fix for DIB/BMP images" 2016-04-19 16:37:29 +01:00
Hugo
a7c678b1af Merge pull request #1813 from wiredfool/DIB_1293
Fix for DIB/BMP images
2016-04-06 19:58:25 +03:00
wiredfool
e84e02997c Fixes DIB image format
The DIB image format uses the 40 byte BMP header, followed by 3 masks
for RGB channels. We were reading 4 masks, consuming the first pixel
of the image.

Mostly fixes issue #1293. Remaining issue: alpha channel is actually a
transparency mask.
2016-04-06 07:38:41 -07:00
hugovk
ba817af569 Merge 2016-04-03 23:08:49 +03:00
wiredfool
14f3b45f46 Merge pull request #1789 from zwhfly/tiff
Add Support for 2/4 bpp Tiff Grayscale Images
2016-04-03 12:07:48 -07:00
wiredfool
26970c5e21 Merge pull request #1782 from radarhere/compression
Different frames may have different compression types
2016-04-01 03:38:18 -07:00
zwhfly
124bee0485 Add Tests for 2/4 bpp Tiff Grayscale Images
Including inverted and/or bit-order-reversed formats.
2016-03-29 20:19:22 +08:00
Geka
33fff9e4a8 Add test for multipage tiff file with different compression 2016-03-27 22:19:04 +11:00
wiredfool
43b4b8d664 Fix for UnboundLocalError with corrupt jpeg2k file 2016-03-26 13:41:00 -07:00
Eric Soroos
717720b051 Fix for buffer overflow in TiffDecode.c CVE-2016-0740 2016-02-04 08:13:11 -08:00
wiredfool
893a40850c FLI overflow error fix and testcase CVE-2016-0775 2016-02-04 08:13:02 -08:00
wiredfool
ae453aa18b PCD decoder overruns the shuffle buffer, Fixes #568 2016-02-02 05:46:26 -08:00
Jerome Leclanche
58c59bbad0 Add a loader for the FTEX format from Independence War 2: Edge of Chaos 2016-02-01 05:23:37 -08:00
wiredfool
99e88c7796 Merge pull request #1653 from wiredfool/gbr
Fixed long broken GBRImagePlugin
2016-01-31 09:03:03 -08:00
wiredfool
13f2d22700 Correctness tests for DDS 2016-01-08 07:59:18 -08:00
wiredfool
ccd9d4b489 Test images for GbrImagePlugin, created in GIMP 2.8 by Eric Soroos 2016-01-08 07:18:05 -08:00
hugovk
02ec83ee64 Test image from https://github.com/python-pillow/Pillow/pull/1644#issuecomment-169101551 2016-01-06 11:57:51 +02:00
hugovk
3515cf82b7 Test images from https://github.com/python-pillow/Pillow/pull/1644#issuecomment-169101551 2016-01-06 11:00:08 +02:00
wiredfool
e5076a3278 Merge pull request #1620 from wiredfool/issue_1597
Partial fix for #1597
2016-01-01 07:47:58 -08:00
wiredfool
9fa6634f4d Partial fix for #1597
Haven't excercized all of the metadata that we're allowing yet,
and there's clearly still something up with Arrays, as one
of them is still crashing and making it impossible to save a
palette with a libtiff image.
2015-12-30 07:54:14 -08:00
hugovk
d9c90bba91 Test passes for 2.9.0, fails for 3.0.0 2015-12-29 22:57:36 +00:00
wiredfool
2f75ee7e9f Merge pull request #1574 from hugovk/wiredfool-multiline_text-plus4
Consistent multiline spacing and tests, with extra space
2015-12-07 13:41:15 +00:00
hugovk
731d0b1b73 Default spacing of 4, update tests 2015-12-06 18:31:33 +02:00
hugovk
c82b54b896 Update tests 2015-12-06 15:57:19 +02:00
Andrew Murray
0c3e224537 Throw TypeError if no cursors were found in .cur file 2015-11-26 19:56:41 +11:00
Andrew Murray
4d7b630b33 Catch OverflowError in SpiderImagePlugin 2015-11-18 01:18:01 +11:00
wiredfool
4883c4d202 image for test 2015-11-15 16:43:16 +00:00
Andrew Murray
6bd7e7f02d Removed trailing whitespace 2015-10-11 21:24:35 +11:00
Hugo van Kemenade
25d03d6fce Merge pull request #1465 from wiredfool/bug-iccprofile
Add tag info for iccprofile, fixes #1462
2015-10-05 15:23:16 +03:00
wiredfool
5e670e9b70 using test file with known license 2015-10-03 17:04:40 -07:00
wiredfool
7206be535e Flatten sampleformat to initial value, fixes #1466 2015-10-03 22:57:44 +01:00
wiredfool
157df44e51 Add tag info for iccprofile, fixes #1462 2015-10-03 16:35:53 +01:00
wiredfool
388b2dab0c Merge pull request #1428 from uploadcare/load-broken-images
Load more broken images
2015-09-24 21:53:36 +01:00
homm
62a52a7a34 replace broken image 2015-09-23 00:33:03 +03:00
Eric L Frederich
86e775daa3 bug fix: Qt wants data aligned to 32 bits
Images in Qt show up incorrectly if each line is not aligned to 32 bits.

It is pretty common for an image's lines to be 32-bit alinged by chance.
Obviously any 32-bit image will not have any problem.
For the bug to manifest itself you'd need...
* a 1-bit image whose width is not a multiple of 32
* an 8-bit image who width is not a multiple of 4

Testing more images now and added a 7x13 png test image
2015-09-18 16:07:35 -04:00
homm
f46d65d0a4 test for this 2015-09-15 20:12:16 +03:00
Hugo van Kemenade
991829b75a Merge pull request #1414 from wiredfool/pr1360
Catch TypeError in _getexif
2015-09-10 19:11:32 +03:00
wiredfool
60f44f2dce Merge pull request #1337 from homm/extraneous-jpeg-bytes
Skip any number extraneous chars at the end of JPEG chunks
2015-09-10 15:39:55 +01:00
wiredfool
07d95c3861 Added test for typeerror test for gpsexif 2015-09-10 05:32:11 -07:00
homm
0b19a86087 skip any number extraneous chars at the end of chunks 2015-09-08 18:05:37 +03:00
homm
430e9922eb test for loading truncated image and raising proper exception 2015-09-08 17:43:12 +03:00
Andrew Murray
3a25b1cd9b Added test for _getexif TypeError 2015-07-29 23:38:26 +10:00
Andrew Murray
2a3a34d2ff Treat MPO with unknown header as base JPEG file 2015-07-19 22:56:04 +10:00
hugovk
dba0e7960a More GIMP palette tests 2015-07-01 14:28:34 +03:00