Pillow/PIL
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
..
__init__.py Bump Version/Changelog 2014-08-19 08:52:29 -07:00
_binary.py Merge Pillow changes with Philippe Lagadec’s OleFileIO_PL fork 2014-01-30 23:37:44 +00:00
_util.py flake8 2014-07-06 01:50:24 +03:00
BdfFontFile.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
BmpImagePlugin.py dpi key should only be present when there is resolution info in the BMP header. 2014-06-28 23:59:01 +02:00
BufrStubImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
ContainerIO.py py3k: 2to3's "idiom" filter 2013-01-10 08:46:53 -06:00
CurImagePlugin.py Flake8 and fix typo 2014-07-17 00:12:54 +03:00
DcxImagePlugin.py flake8 2014-07-17 01:21:56 +03:00
EpsImagePlugin.py Merge from master, pre-unittest conversion 2014-06-03 14:42:22 -07:00
ExifTags.py Correct the correction: RelatedImageWidth=0x1001, RelatedImageLength=0x1002 2014-08-27 11:06:34 +03:00
FitsStubImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
FliImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
FontFile.py Remove unused WIP save2() from pre-fork days 2014-07-05 23:02:34 +03:00
FpxImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
GbrImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
GdImageFile.py Apply @Arfrever patch, fixes #258 2013-06-30 07:04:42 -04:00
GifImagePlugin.py Fixed wrong mode of gif image. 2014-08-07 16:23:08 +03:00
GimpGradientFile.py Fix for Python 3 2014-08-26 12:23:12 +03:00
GimpPaletteFile.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
GribStubImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
Hdf5StubImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
IcnsImagePlugin.py Icns DOS fix -- CVE-2014-3589 2014-08-13 09:25:11 -07:00
IcoImagePlugin.py Make ICO files work with the ImageFile.Parser interface, fixes #522 2014-02-16 20:58:06 -08:00
Image.py Add access functions for ImagingEffectSpread with a test 2014-09-02 15:53:58 +03:00
ImageChops.py Remove old ImageChops comments; redundant with docstrings 2013-10-11 22:46:57 -07:00
ImageCms.py Docs for profile additions 2014-08-02 21:22:51 -07:00
ImageColor.py Docstring/comment fixes [skip ci] ref #534 2014-03-17 13:29:44 -07:00
ImageDraw.py Apply @Arfrever patch, fixes #258 2013-06-30 07:04:42 -04:00
ImageDraw2.py Fix imports 2013-03-07 11:20:28 -05:00
ImageEnhance.py Update URL 2014-06-22 16:30:41 -04:00
ImageFile.py Fix scrambled XPM image, don't mmap when load_read/load_seek is defined. Fixes #806 2014-07-18 10:40:08 -07:00
ImageFileIO.py Transformed docstrings of ImageFile and ImageFileIO modules 2013-07-19 15:11:26 +00:00
ImageFilter.py Fully document PIL.ImageFilter 2013-10-12 16:49:32 -07:00
ImageFont.py Merge #772 and master 2014-07-08 10:29:53 -07:00
ImageGrab.py Move ImageGrab docs back to ImageGrab.rst instead of autodoc 2013-10-13 09:56:58 -07:00
ImageMath.py flake8 ImageMath.py 2014-07-05 12:13:43 +03:00
ImageMode.py Fix imports 2013-03-07 11:20:28 -05:00
ImageMorph.py Autodoc formatting 2014-07-12 09:52:04 -07:00
ImageOps.py Changed docstring to refer to the correct function 2014-08-02 12:17:57 +01:00
ImagePalette.py More ImagePalette.py tests and remove unused and uncallable new() 2014-07-21 23:18:46 +03:00
ImagePath.py Fully document PIL.ImagePath 2013-10-13 21:41:21 -07:00
ImageQt.py Fix for failing ImageQt with mode 'L' image 2013-11-20 22:20:13 -08:00
ImageSequence.py Fully document PIL.ImageSequence 2013-10-13 21:49:35 -07:00
ImageShow.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
ImageStat.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
ImageTk.py Fully document PIL.ImageTk 2013-10-13 22:09:02 -07:00
ImageTransform.py Fix imports 2013-03-07 11:20:28 -05:00
ImageWin.py Fully document PIL.ImageWin 2013-10-13 22:19:12 -07:00
ImImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
ImtImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
IptcImagePlugin.py Remove disabled _is_raw() 2014-08-01 11:12:47 +03:00
Jpeg2KImagePlugin.py J2k DOS fix -- CVE-2014-3598 2014-08-19 08:25:40 -07:00
JpegImagePlugin.py Fixed issue #857. 2014-09-02 14:52:25 -07:00
JpegPresets.py Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
McIdasImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
MicImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
MpegImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
MpoImagePlugin.py Dropped unused "options" from MPO save. 2014-07-30 09:17:43 -07:00
MspImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
OleFileIO-README.md Fix link 2014-06-03 09:01:57 -04:00
OleFileIO.py converted to current docutils format 2014-07-15 21:24:52 -07:00
PaletteFile.py Fix imports 2013-03-07 11:20:28 -05:00
PalmImagePlugin.py Ensure rowbytes is an integer (fix for Python 3) 2014-07-01 22:36:56 +03:00
PcdImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
PcfFontFile.py Fix imports 2013-03-07 11:20:28 -05:00
PcxImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
PdfImagePlugin.py Merge from master, pre-unittest conversion 2014-06-03 14:42:22 -07:00
PixarImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
PngImagePlugin.py Save detected non-Latin1 characters as iTXt to preserve them. 2014-07-23 07:43:52 -07:00
PpmImagePlugin.py Fix failing tests, turns out I is different than L 2014-04-08 22:44:24 -07:00
PsdImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
PSDraw.py Fixing doc warning 2014-07-14 21:32:14 -07:00
PyAccess.py Storage, packing and access for HSV format images 2014-07-22 16:09:22 -07:00
SgiImagePlugin.py If we can't read a file due to unsupported compression, raise an error 2014-07-20 01:50:05 +03:00
SpiderImagePlugin.py pep8/pyflakes 2014-05-26 21:56:40 +03:00
SunImagePlugin.py flake8 2014-07-16 14:26:30 +03:00
TarIO.py Fix imports 2013-03-07 11:20:28 -05:00
TgaImagePlugin.py flake8 and tests 2014-08-20 10:32:06 +04:00
TiffImagePlugin.py Change wrapping to include some context on first line; plus typo fix 2014-07-29 23:00:38 +03:00
TiffTags.py flake8 2014-08-26 15:52:37 +03:00
WalImageFile.py Update URL; fix typo 2014-06-22 16:44:52 -04:00
WebPImagePlugin.py JpegImagePlugin._getexif expects no exif key in info dict, not None 2014-01-20 19:03:03 +04:00
WmfImagePlugin.py Cherry-pick of portions of patch a500ca1393, many shortcut ops added, no functional changes 2014-05-09 21:36:15 -07:00
XbmImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
XpmImagePlugin.py flake8 2014-07-17 02:40:14 +03:00
XVThumbImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00