Commit Graph

311 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
Andrew Murray
392d567352 Added CMYK mode for opening EPS files 2016-04-13 18:27:46 +10: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
Andrew Murray
63a32a9c5b Added test for GimpPaletteFile 2015-07-01 15:47:47 +10:00
hugovk
593a910e92 Unit test and image: convert hopper.png hopper.bmp 2015-06-30 07:09:35 +03:00
Andrew Murray
b7335ec9d9 Added multiline tests 2015-06-18 17:51:33 +10:00
wiredfool
d2e54d7973 Merge pull request #1255 from radarhere/polygon
Fixed polygon edge drawing
2015-06-17 18:18:36 -07:00
wiredfool
e567267784 Merge pull request #1230 from hugovk/1229_xbm
Identify XBM file created with filename including underscore
2015-06-16 11:51:35 -07:00
hugovk
5c40cb1ba6 Merge 2015-06-08 20:46:39 +03:00
Andrew Murray
46f439604c Added tests 2015-06-08 01:02:43 +10:00
Andrew Murray
109ec638d9 Added test for bad EXIF data 2015-06-07 00:10:15 +10:00
Andrew Murray
a1b71d5ee0 Added test for polygon edge drawing 2015-06-06 00:46:50 +10:00
Justin Wilson
e33b5c6355 Added test to check that png with null tRNS value defaults to a zero transparency value. 2015-05-27 09:45:27 -06:00
hugovk
ca7f44e7ae Fix comment and file 2015-05-12 13:34:18 +03:00
hugovk
bf1645616f Passing test for hopper.xbm and failing test for hopper_underscore.xbm 2015-05-12 12:43:58 +03:00
hugovk
883858151d Simple test for 1104 2015-03-26 14:05:17 +02:00
wiredfool
44286ba3c9 Fix for zlib.decompression bomb in iTXt,zTXt, and iCCP chunks 2014-12-28 22:49:52 -08:00
wiredfool
8a3302ba5d Merge pull request #961 from homm/fast-box-blur
Merge Fast Gaussian Blur
2014-11-27 10:20:11 -08:00
Hugo
4d74b81a15 Merge pull request #980 from wiredfool/pr_938
4 bit TIFF support
2014-10-29 21:41:17 +02:00
wiredfool
72c6db99df Merge pull request #976 from hugovk/tiff_ints
Fix saving TIFF with PageNumber total = 0
2014-10-29 11:11:10 -07:00
hugovk
86c5fdc7aa Created by printing a page in Chrome to PDF, then: /usr/bin/gs -q -sDEVICE=tiffg3 -sOutputFile=total-pages-zero.tif -dNOPAUSE /tmp/test.pdf -c quit 2014-10-26 18:14:34 +02:00
hugovk
71a8d8db07 Created with ImageMagick: convert hopper.jpg hopper_jpg.tif 2014-10-26 11:15:29 +02:00
homm
ddae12928a add detailed test for blur and simple test for sharp 2014-10-08 12:51:34 +04:00
Hugo
29b1c81a9e Created with ImageMagick: convert tests\images\hopper.jpg -colorspace Gray -colors 16 -depth 4 tests\images\hopper_gray_4bpp.tif 2014-10-02 10:31:30 +03:00
Hugo
8fbd18a706 Merge remote-tracking branch 'upstream/master' into MspImagePlugin
Conflicts:
	Tests/helper.py
2014-09-30 13:05:58 +03:00
wiredfool
7fcb371fd3 Merge pull request #926 from wiredfool/fli
Replace lena.fli with hopper.fli
2014-09-29 10:58:52 -07:00
wiredfool
8d84f79f44 Replace lena.fli with hopper.fli 2014-09-29 10:40:33 -07:00
Hugo
0aa48600a2 Add a layer to hopper.psd, because lena.psd had layers 2014-09-23 17:09:43 +03:00
Hugo
a5fc5e3e7e Made with ImageMagick: convert hopper_bw_500.png -compress group4 hopper_g4_500.tif 2014-09-23 16:15:26 +03:00
Hugo
d306223ae3 Made with ImageMagick: convert hopper.jpg -resize 500x500 -monochrome hopper_bw_500.png 2014-09-23 16:15:09 +03:00
Hugo
c793323cbc Replace lena.xpm with hopper.xpm 2014-09-23 16:01:58 +03:00
Hugo
a608e15fad Created with ImageMagick: convert hopper.jpg -colors 44 hopper.xpm 2014-09-23 16:00:43 +03:00
Hugo
468cea1be0 Replace lena.psd with hopper.psd 2014-09-23 13:53:51 +03:00
Hugo
b60a06e59a Created with Photoshop: open hopper.jpg, save as PSD 2014-09-23 13:51:35 +03:00
Hugo
781da7d465 Replace lena.Lab.tif with hopper.Lab.tif + flake8 2014-09-23 13:45:32 +03:00
Hugo
ae9da298b9 Created in Photoshop: open hopper.jpg, convert to Lab, save 2014-09-23 13:44:05 +03:00
Hugo
925cea3780 Replace lena_g4.tif with hopper_g4.tif 2014-09-23 10:57:55 +03:00
Hugo
c417b51115 Created with ImageMagick: convert hopper.png -compress group4 hopper_g4.tif 2014-09-23 10:30:14 +03:00
Hugo
04d402adae Replace lena with hopper 2014-09-22 19:00:22 +03:00
Hugo
45a616ef80 Created with Pillow: im = Image.open('hopper.jpg'); im = im.convert('1'); im.save('hopper.msp') 2014-09-18 14:44:41 +03:00
hugovk
a2e729f487 Replace some lena with hopper 2014-09-14 22:58:23 +03:00
hugovk
bd3e54938f Made with ImageMagick: convert hopper.jpg -colorspace Gray hopper_gray.jpg 2014-09-14 22:47:43 +03:00
hugovk
eb458c7c8f Replace lena.tif with hopper.tif (created with ImageMagick) 2014-09-05 12:14:45 +03:00
Hugo
5f4c758b99 Convert .ico to 8-bit to match lena.ico: convert hopper.ico -alpha off -colors 256 hopper2.ico 2014-09-04 22:53:35 +03:00
hugovk
3ec65f8614 Replace lena.ico with hopper.ico. Created with ImageMagick: convert hopper.jpg -resize 16x16 hopper.ico 2014-09-04 13:29:35 +03:00
hugovk
76a7965187 Replace lena.dcx with hopper.dcx. Created with ImageMagick: convert hopper.ppm hopper.dcx 2014-09-04 13:24:53 +03:00
hugovk
4a243e90bc Replace lena.ras with hopper.ras, created with ImageMagick: convert hopper.jpg hopper.ras 2014-09-04 12:59:03 +03:00
hugovk
53a04a4118 Replace lena.spider with hopper.spider, created with Pillow. 2014-09-04 12:28:37 +03:00
hugovk
14ac9ce59c Replace lena.tar with hopper.tar 2014-09-04 12:21:19 +03:00
hugovk
06a2378f52 Remove lena.png 2014-09-04 12:13:43 +03:00
hugovk
e524bcc327 Created with ImageMagick: convert hopper.jpg hopper.png 2014-09-04 12:09:15 +03:00
hugovk
b451c6f410 Replace lena.rgb and lena.bw with hopper 2014-09-04 10:31:16 +03:00
hugovk
513422323b Created with ImageMagick then renamed: convert hopper.ppm hopper.sgi 2014-09-04 10:29:39 +03:00
hugovk
5b01333f62 Created with ImageMagick then renamed: convert hopper.ppm -monochrome hopper.sgi 2014-09-04 10:24:13 +03:00
Hugo
d7f7965aa2 Replace lena.gif with hopper.gif 2014-09-04 08:44:46 +03:00
Hugo
b248dcd019 Image created by Pillow via test_effect_spread() 2014-09-04 08:42:46 +03:00
Hugo
c1c77c4a63 Fix path 2014-09-04 08:42:12 +03:00
Hugo
4cafbf5112 Fix path 2014-09-04 08:26:50 +03:00
Hugo
2798589a24 Crop, resize and rename 2014-09-03 22:58:03 +03:00
Hugo
675014b26a Public domain image of Grace Hopper: http://www.history.navy.mil/photos/images/h96000/h96919k.jpg 2014-09-03 22:44:02 +03:00
wiredfool
b8bdd13aac Tests for multipage tiffs 2014-09-02 15:20:24 -07:00
Kenny Ostrom
f54bccab0e multipage tiff for iterator testing 2014-09-02 15:20:24 -07:00
etienne
416d8e340e 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:52:25 -07:00
wiredfool
86d5d8abed Merge pull request #882 from hugovk/effects
Tests and access functions for Effects.c
2014-09-02 14:36:24 -07:00
hugovk
bcc5305125 Add access functions for ImagingEffectSpread with a test 2014-09-02 15:53:58 +03:00
hugovk
8c96d38ce9 Add access functions for ImagingEffectMandelbrot with a test 2014-09-02 15:14:00 +03:00
hugovk
dbf0ee3631 Add (failing) test for GIMP 1.3 gradient files and .ggr by me 2014-08-26 12:04:04 +03:00
hugovk
674fd9744d Tests for GimpGradientFile and a sample .ggr by me 2014-08-26 11:45:28 +03:00
Alexey Buzanov
f94b6b4025 flake8 and tests 2014-08-20 10:32:06 +04:00
hugovk
e49e689c70 Add JPEG with IPTC data. My image, permission given to distribute under MIT licence 2014-07-30 19:33:04 +03:00
Eric W. Brown
6605bf22e5 Merge branch 'master' of https://github.com/python-pillow/Pillow 2014-07-23 09:22:15 -04:00
wiredfool
bf2014ece6 Merge pull request #803 from hugovk/SgiImagePlugin
Sanity tests for SgiImagePlugin.py
2014-07-19 21:21:11 -07:00
hugovk
84b13ff1ae Created with ImageMagick: convert lena.ppm lena.dcx 2014-07-17 01:19:52 +03:00
hugovk
1ff695873f Cursor image by Miss Mycroft, 'Released under the Release to Public Domain license' http://www.rw-designer.com/cursor-detail/61757 2014-07-16 23:44:35 +03:00
hugovk
535494d862 Created with ImageMagick: convert transparent.png transparent.sgi 2014-07-16 21:27:31 +03:00
hugovk
e29c2d49c0 Created with ImageMagick then renamed: convert lena.ppm -monochrome lena.sgi 2014-07-16 21:27:06 +03:00
hugovk
cc27e8d532 Created with ImageMagick then renamed: convert lena.ppm lena.sgi 2014-07-16 21:26:47 +03:00
hugovk
5db868e060 Created with ImageMagick: convert lena.ppm lena.ras 2014-07-16 14:20:15 +03:00
Eric W. Brown
2609a24221 Moved images to correct place.
Accidentally uploaded images to their initial test location, not the
proper location used by other tests.
2014-07-15 17:43:31 -04:00
wiredfool
552effb90d Merge #772 and master 2014-07-08 10:29:53 -07:00
Alex Clark ☺
962f1b46af Merge pull request #784 from tk0miya/master
Fix return value of FreeTypeFont.textsize() does not include font offsets
2014-07-08 05:14:01 -04:00
Hugo
cb5ed5973a Merge pull request #765 from larsjsol/master
Fix dispose calculations for animated GIFs
2014-07-07 23:04:38 +03:00
Lars Jørgen Solberg
5fa2794386 Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
Takeshi KOMIYA
60628c77b3 Fix return value of FreeTypeFont.textsize() does not include font offsets 2014-07-07 14:42:46 +09:00
hugovk
ff6a0b9b8c Add test image using ImageFont's default font 2014-07-05 00:18:52 +03:00
wiredfool
668141a898 updated imagedraw tests 2014-06-30 15:03:57 -07:00
wiredfool
3bf375c5f7 Merge branch 'master' into terseus_imagedraw 2014-06-30 14:24:59 -07:00
David Joy
b147dea535 Add tests and fix a 16bit vs 32bit integer bug
Yay unit tests!
2014-06-25 14:06:56 -04:00
wiredfool
a990af1b97 Merge from master 2014-06-24 16:48:38 -07:00
Hugo
0cd52412b1 Merge pull request #654 from wiredfool/cleanup
Thanks.
2014-06-24 12:16:13 +03:00
wiredfool
6dce921dad Merge branch 'master' into morphology 2014-06-23 16:21:33 -07:00
hugovk
a600f84029 Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
wiredfool
b8834fa3a6 Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
wiredfool
618a79c1c6 Merge from master, pre-unittest conversion 2014-06-03 14:42:22 -07:00
wiredfool
5b73d8f57b Merge pull request #661 from hugovk/test_imagedraw
Add more ImageDraw tests
2014-06-01 09:09:58 -07:00
wiredfool
60e2eaa5e9 Merge pull request #680 from hugovk/spider
Add tests for SPIDER image files
2014-05-30 08:46:33 -07:00
hugovk
268c419d7c Simple spider test. Test image created with Pillow. 2014-05-26 20:09:12 +03:00
wiredfool
3f18e0adfe Merge pull request #619 from eliempje/master
Bugfix: EPS thumbnail failed
2014-05-24 13:09:25 +01:00
hugovk
9c048e44d1 Permission to use and distribute (under the MIT license) this image as a testfile granted by cepreu2github: https://github.com/python-imaging/Pillow/issues/630#issuecomment-43674288 2014-05-21 14:30:05 +03:00
eliempje
a712cec02b Added test and testfile for issue #302 2014-05-14 23:14:55 +02:00
hugovk
60b2570133 Test ImageDraw's bitmap() 2014-05-13 14:43:48 +03:00
hugovk
5b55cb72d3 Test experimental floodfill with a border 2014-05-12 23:33:05 +03:00