-----
The test suite includes 750 individual tests.
- The "pilfont" package is now included in the standard PIL
distribution. The pilfont utility can be used to convert
X BDF and PCF raster font files to a format understood by
the ImageFont module.
- GIF files are now interlaced by default. To write a
non-interlaced file, pass interlace=0 to the "save"
method.
- The default string format has changed for the "fromstring"
and "tostring" methods.
**WARNING: MAY BREAK EXISTING CODE**
NOTE: If no extra arguments are given, the first line in
the string buffer is the top line of the image, instead of
the bottom line. For RGB images, the string now contains
3 bytes per pixel instead of 4. These changes were made
to make the methods compatible with the "fromstring"
factory function.
To get the old behaviour, use the following syntax::
data = im.tostring("raw", "RGBX", 0, -1)
im.fromstring(data, "raw", "RGBX", 0, -1)
- "new" no longer gives a MemoryError if the width or height
is zero (this only happened on platforms where malloc(0)
or calloc(0) returns NULL).
- "new" now adds a default palette object to "P" images.
- You can now convert directly between all modes supported by
PIL. When converting colour images to "P", PIL defaults to
a "web" palette and dithering. When converting greyscale
images to "1", PIL uses a thresholding and dithering.
- Added a "dither" option to "convert". By default, "convert"
uses floyd-steinberg error diffusion for "P" and "1" targets,
so this option is only used to *disable* dithering. Allowed
values are NONE (no dithering) or FLOYDSTEINBERG (default).
::
imOut = im.convert("P", dither=Image.NONE)
- Added a full set of "I" decoders. You can use "fromstring"
(and file decoders) to read any standard integer type as an
"I" image.
- Added some support for "YCbCr" images (creation, conversion
from/to "L" and "RGB", IM YCC load/save)
- "getpixel" now works properly with fractional coordinates.
- ImageDraw "setink" now works with "I", "F", "RGB", "RGBA",
"RGBX", "CMYK", and "YCbCr" images.
- ImImagePlugin no longer attaches palettes to "RGB" images.
- Various minor fixes.