Pillow/Tests/images
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
..
bmp Test Images 2014-01-23 20:29:58 -08:00
imagedraw Added tests for lines with 1px slope 2014-04-09 19:34:50 +02:00
10ct_32bit_128.tiff Test image: TIFF for OPEN_INFO = {(II, 0, 3, 1, (32,), ()): ("F", "F;32F")} 2014-04-11 11:39:05 +02:00
12bit.cropped.tif Tests for 12bit tiff rawmode 2013-11-20 16:54:49 -08:00
12in16bit.tif Tests for 12bit tiff rawmode 2013-11-20 16:54:49 -08:00
16_bit_binary_pgm.png Read test for 16 bit binary pgm file, #602 2014-04-07 22:10:45 -07:00
16_bit_binary.pgm Read test for 16 bit binary pgm file, #602 2014-04-07 22:10:45 -07:00
16bit.cropped.j2k Add tests and fix a 16bit vs 32bit integer bug 2014-06-25 14:06:56 -04:00
16bit.cropped.jp2 Add tests and fix a 16bit vs 32bit integer bug 2014-06-25 14:06:56 -04:00
16bit.cropped.tif Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format 2013-11-19 14:48:01 -08:00
16bit.deflate.tif Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format 2013-11-19 14:48:01 -08:00
16bit.MM.cropped.tif Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format 2013-11-19 14:48:01 -08:00
16bit.MM.deflate.tif Renamed test tiff files to 16bit*. They are 12bit data in a 16bit format 2013-11-19 14:48:01 -08:00
binary_preview_map.eps Added test and testfile for issue #302 2014-05-14 23:14:55 +02:00
broken.png py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
caption_6_33_22.png py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
corner.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
courB08.bdf Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
courB08.pbm Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
courB08.pil Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
create_eps.gnuplot Test harness for EPS files. 2013-11-20 00:43:10 -06:00
deerstalker.cur 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
default_font.png Add test image using ImageFont's default font 2014-07-05 00:18:52 +03:00
dilation4.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
dilation8.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
dispose_bgnd.gif Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
dispose_none.gif Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
dispose_prev.gif Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
edge.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
effect_mandelbrot.png Add access functions for ImagingEffectSpread with a test 2014-09-02 15:53:58 +03:00
effect_spread.png Add access functions for ImagingEffectSpread with a test 2014-09-02 15:53:58 +03:00
erosion4.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
erosion8.lut Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
flower.jpg Adding support for metadata in webp images. 2013-07-04 18:04:07 -03:00
flower.webp Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
flower2.jpg Adding support for metadata in webp images. 2013-07-04 18:04:07 -03:00
flower2.webp Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
frozenpond.mpo Moved images to correct place. 2014-07-15 17:43:31 -04:00
g4-fillorder-test.png tests for issue #279 2013-07-10 22:24:11 -07:00
g4-fillorder-test.tif tests for issue #279 2013-07-10 22:24:11 -07:00
gimp_gradient_with_name.ggr Add (failing) test for GIMP 1.3 gradient files and .ggr by me 2014-08-26 12:04:04 +03:00
gimp_gradient.ggr Tests for GimpGradientFile and a sample .ggr by me 2014-08-26 11:45:28 +03:00
high_ascii_chars.png Working in py3k, not in 2.x 2014-02-04 21:41:16 -08:00
icc_profile_none.png Fix crash on save when icc_profile is None 2014-01-19 16:40:39 +01:00
imagedraw_arc.png Tests for ImageDraw 2014-05-12 17:32:04 +03:00
imagedraw_bitmap.png Test ImageDraw's bitmap() 2014-05-13 14:43:48 +03:00
imagedraw_chord.png Tests for ImageDraw 2014-05-12 17:32:04 +03:00
imagedraw_ellipse.png updated imagedraw tests 2014-06-30 15:03:57 -07:00
imagedraw_floodfill.png Test experimental floodfill() 2014-05-12 23:27:02 +03:00
imagedraw_floodfill2.png Test experimental floodfill with a border 2014-05-12 23:33:05 +03:00
imagedraw_line.png updated imagedraw tests 2014-06-30 15:03:57 -07:00
imagedraw_pieslice.png updated imagedraw tests 2014-06-30 15:03:57 -07:00
imagedraw_point.png More ImageDraw tests. Some may need redoing after issues #367 and #463 are sorted. 2014-05-12 21:45:16 +03:00
imagedraw_polygon.png updated imagedraw tests 2014-06-30 15:03:57 -07:00
imagedraw_rectangle.png More ImageDraw tests. Some may need redoing after issues #367 and #463 are sorted. 2014-05-12 21:45:16 +03:00
iptc.jpg Add JPEG with IPTC data. My image, permission given to distribute under MIT licence 2014-07-30 19:33:04 +03:00
iss634.gif Tests dispose and transparency for animated gifs 2014-07-07 20:47:18 +02:00
junk_jpeg_header.jpg 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
l_trns.png added tests to cover save of four different png transparencies 2013-03-26 11:24:07 +01:00
lab-green.tif Shifting the midpoint of the ab channels to 128. unshifting back to signed int on pack 2013-10-15 22:06:30 -07:00
lab-red.tif Shifting the midpoint of the ab channels to 128. unshifting back to signed int on pack 2013-10-15 22:06:30 -07:00
lab.tif Back to RGBx format, 3 bands in 4 bytes. Tests for internal consistency 2013-10-14 22:47:27 -07:00
lena_bw_500.png test suite for g4 tiff images 2013-03-11 22:04:22 -07:00
lena_bw.png test suite for g4 tiff images 2013-03-11 22:04:22 -07:00
lena_g4_500.tif test suite for g4 tiff images 2013-03-11 22:04:22 -07:00
lena_g4.tif test suite for g4 tiff images 2013-03-11 22:04:22 -07:00
lena_gray.jpg Fixed issue #857. 2014-09-02 14:52:25 -07:00
lena_webp_bits.ppm checking results of webp decoding 2013-03-19 13:40:10 -07:00
lena_webp_write.ppm added write verification test 2013-03-19 13:49:01 -07:00
lena.bw Created with ImageMagick then renamed: convert lena.ppm -monochrome lena.sgi 2014-07-16 21:27:06 +03:00
lena.dcx Created with ImageMagick: convert lena.ppm lena.dcx 2014-07-17 01:19:52 +03:00
lena.fli Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.gif Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.ico Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.jpg Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.Lab.tif Well, now I know _why_ it's failing. We don't have a concept for LAB color 2013-10-10 23:02:33 -07:00
lena.png Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.ppm Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.psd Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.ras Created with ImageMagick: convert lena.ppm lena.ras 2014-07-16 14:20:15 +03:00
lena.rgb Created with ImageMagick then renamed: convert lena.ppm lena.sgi 2014-07-16 21:26:47 +03:00
lena.spider Simple spider test. Test image created with Pillow. 2014-05-26 20:09:12 +03:00
lena.tar Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.tif Additional test image 2013-10-07 23:14:46 -07:00
lena.webp Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
lena.xpm Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
morph_a.png Additional tests, tests in functions 2014-06-19 14:55:43 -07:00
multiline_text.png testcase for multiline text spacing 2013-09-24 14:23:17 -07:00
non_zero_bb_scale2.png Test harness for EPS files. 2013-11-20 00:43:10 -06:00
non_zero_bb.eps Test harness for EPS files. 2013-11-20 00:43:10 -06:00
non_zero_bb.png Test harness for EPS files. 2013-11-20 00:43:10 -06:00
p_trns_single.png added tests to cover save of four different png transparencies 2013-03-26 11:24:07 +01:00
pil_sample_cmyk.jpg py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil_sample_rgb.jpg py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil123p.png py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil123rgba.png py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil136.tiff py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil168.tif py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pil184.pcx py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
pillow.icns Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
pillow.ico Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
pillow2.icns Updated icons. 2014-03-26 14:08:54 +00:00
pillow3.icns Made JPEG2K support for files conditional on its inclusion in pillow build. Added a JPEG2K icon test. 2014-03-28 09:09:55 +00:00
pngtest_bad.png.bin Circumvent classification of pngtest_bad.png as malware 2013-09-27 16:35:37 -07:00
pport_g4.tif End 'Make' tag with null byte 2013-03-14 16:06:20 -07:00
python.ico Make ICO files work with the ImageFile.Parser interface, fixes #522 2014-02-16 20:58:06 -08:00
rectangle_surrounding_text.png Fix return value of FreeTypeFont.textsize() does not include font offsets 2014-07-07 14:42:46 +09:00
rgb_trns_ycbc.j2k Test j2k 2014-04-14 13:49:29 +03:00
rgb_trns_ycbc.jp2 Test j2k 2014-04-14 13:49:29 +03:00
rgb_trns.png Added a test for issue #421 2013-11-22 16:04:51 -08:00
rgb.jpg py3k: Import Christoph Gohlke's test suite 2013-01-10 08:46:39 -06:00
sugarshack.mpo Moved images to correct place. 2014-07-15 17:43:31 -04:00
test-card-lossless.jp2 Really added the tests this time. 2014-03-19 12:17:14 +00:00
test-card-lossy-tiled.jp2 Really added the tests this time. 2014-03-19 12:17:14 +00:00
test-card.png Really added the tests this time. 2014-03-19 12:17:14 +00:00
test-ole-file.doc Add some simple tests for OleFileIO.py 2014-04-11 14:53:33 +03:00
test.colors.gif test for issue #434 2014-03-04 22:29:55 -08:00
tga_id_field.tga flake8 and tests 2014-08-20 10:32:06 +04:00
tiff_adobe_deflate.tif add several TIFF decoders and encoders 2013-07-01 18:45:42 +04:00
transparent.png Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
transparent.sgi Created with ImageMagick: convert transparent.png transparent.sgi 2014-07-16 21:27:31 +03:00
transparent.webp Move images from Images/ to Tests/images/ 2014-06-23 09:04:23 +03:00
zero_bb_scale2.png Test harness for EPS files. 2013-11-20 00:43:10 -06:00
zero_bb.eps Test harness for EPS files. 2013-11-20 00:43:10 -06:00
zero_bb.png Test harness for EPS files. 2013-11-20 00:43:10 -06:00