Pillow/PIL
Joaquín Cuenca Abela c68044bf7f Fix IOError when saving progressive JPEGs.
when the jpeg encoder sees the flags optimize or progressive (or progression)
it will write the full image in one shot.

The bufsize needs to be big enough to hold the entire image. The current heuristic
is that the entire compressed image will fit in width * height bytes, but this
heuristic is only applied to save operations with the flag "optimize" and not to
save operations with the flag "progressive".

This patch fixes this oversight.

(Btw, it will probably be a good idea to have a loop that retries with a bigger
bufsize in case this guess is not big enough.)
2013-08-02 14:36:46 +02:00
..
__init__.py version updates 2013-05-21 21:46:36 -07:00
_binary.py py3k: The big push 2013-01-10 08:46:56 -06:00
_util.py Update _util.py 2013-07-25 17:25:18 +01:00
ArgImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
BdfFontFile.py Fix imports 2013-03-07 11:20:28 -05:00
BmpImagePlugin.py Fix imports 2013-03-07 11:20:28 -05: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 Fix imports 2013-03-07 11:20:28 -05:00
DcxImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
EpsImagePlugin.py Fix AttributeError: 'module' object has no attribute 'spawn' 2013-03-08 11:15:28 -08:00
ExifTags.py Added some missing exif tags 2013-07-24 18:46:21 +00:00
FitsStubImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
FliImagePlugin.py Use bytes literal, fixes Tests/test_file_fli.py 2013-03-08 08:01:56 -05:00
FontFile.py Fix imports 2013-03-07 11:20:28 -05:00
FpxImagePlugin.py Fix imports 2013-03-07 11:20:28 -05: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 Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
GimpGradientFile.py Fix imports 2013-03-07 11:20:28 -05:00
GimpPaletteFile.py Fix imports 2013-03-07 11:20:28 -05: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 Fix imports 2013-03-07 11:20:28 -05:00
IcoImagePlugin.py Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
Image.py Fail fast if there's an import error on _imaging 2013-07-23 10:17:15 -07:00
ImageChops.py Fix imports 2013-03-07 11:20:28 -05:00
ImageCms.py Apply @Arfrever patch, fixes #258 2013-06-30 07:04:42 -04:00
ImageColor.py Add RGBA support to ImageColor 2013-07-30 16:43:40 +02: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 Fix imports 2013-03-07 11:20:28 -05:00
ImageFile.py Transformed docstrings of ImageFile and ImageFileIO modules 2013-07-19 15:11:26 +00:00
ImageFileIO.py Transformed docstrings of ImageFile and ImageFileIO modules 2013-07-19 15:11:26 +00:00
ImageFilter.py fix for if isinstance(filter, collections.Callable) crash. Python bug #7624 on <2.6.6 2013-03-27 09:44:54 -07:00
ImageFont.py Fix for #304: test for str, not "utf-8". 2013-07-25 18:21:08 +01:00
ImageGrab.py Fix imports 2013-03-07 11:20:28 -05:00
ImageMath.py PIL imports work in python3/Ubuntu 2013-04-08 20:55:06 -07:00
ImageMode.py Fix imports 2013-03-07 11:20:28 -05:00
ImageOps.py Generalizing pterk's ZeroDivisionError fix for 1px images 2013-07-01 12:36:46 +01:00
ImagePalette.py fixed deprecation warnings for tostring on array.array 2013-05-23 10:33:27 -07:00
ImagePath.py Fix imports 2013-03-07 11:20:28 -05:00
ImageQt.py Apply @Arfrever patch, fixes #258 2013-06-30 07:04:42 -04:00
ImageSequence.py Forking PIL 2010-07-30 22:52:47 -04:00
ImageShow.py Fix imports 2013-03-07 11:20:28 -05:00
ImageStat.py Fix imports 2013-03-07 11:20:28 -05:00
ImageTk.py merged pull request #88 to master, resolved conflicts 2013-04-08 20:31:28 -07:00
ImageTransform.py Fix imports 2013-03-07 11:20:28 -05:00
ImageWin.py Fix imports 2013-03-07 11:20:28 -05:00
ImImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
ImtImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
IptcImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
JpegImagePlugin.py Fix IOError when saving progressive JPEGs. 2013-08-02 14:36:46 +02: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 Fix imports 2013-03-07 11:20:28 -05:00
MspImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
OleFileIO.py Apply @Arfrever patch, fixes #258 2013-06-30 07:04:42 -04:00
PaletteFile.py Fix imports 2013-03-07 11:20:28 -05:00
PalmImagePlugin.py Fix imports 2013-03-07 11:20:28 -05: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 Fix imports 2013-03-07 11:20:28 -05:00
PdfImagePlugin.py Use the JPEG Plugin save instead of calling the ImageFile directly 2013-05-12 02:34:07 +02:00
PixarImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
PngImagePlugin.py fix png decode tRNS pattern 2013-03-21 21:00:25 +01:00
PpmImagePlugin.py ignore high ascii characters in string.whitespace 2013-07-08 22:16:25 -07:00
PsdImagePlugin.py Cleanup WS, courtesy of @Arfrever 2013-06-30 18:42:19 -04:00
PSDraw.py Fix imports 2013-03-07 11:20:28 -05:00
SgiImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
SpiderImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
SunImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
TarIO.py Fix imports 2013-03-07 11:20:28 -05:00
TgaImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
TiffImagePlugin.py Ignore fillorder=2 when reading using libtiff 2013-07-10 22:36:55 -07:00
TiffTags.py Forking PIL 2010-07-30 22:52:47 -04:00
WalImageFile.py Fix imports 2013-03-07 11:20:28 -05:00
WebPImagePlugin.py Adding support for metadata in webp images. 2013-07-04 18:04:07 -03:00
WmfImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
XbmImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
XpmImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00
XVThumbImagePlugin.py Fix imports 2013-03-07 11:20:28 -05:00