

Image moduleImageChops (“channel operations”) moduleImageCms moduleImageColor moduleImageDraw moduleImageEnhance moduleImageFile moduleImageFilter moduleImageFont moduleImageGrab moduleImageMath moduleImageMorph moduleImageOps moduleImagePalette moduleImagePath moduleImageQt moduleImageSequence moduleImageShow moduleImageStat moduleImageText moduleImageTk moduleImageTransform moduleImageWin module (Windows-only)ExifTags moduleTiffTags moduleJpegPresets modulePSDraw modulePixelAccess classfeatures moduleExifTags.IFD.Makernote has been deprecated. Instead, useExifTags.IFD.MakerNote.
Pillow 11.0.0 added writing XMP data to JPEG and MPO images:
im.info["xmp"]=b"test"im.save("out.jpg")
However, this meant that XMP data was automatically kept from an opened image,which is inconsistent with the rest of Pillow’s behaviour. This functionalityhas been removed. To write XMP data, thexmp argument can still be used forJPEG files:
im.save("out.jpg",xmp=b"test")
To save XMP data to the second frame of an MPO image,encoderinfo can nowbe used:
second_im.encoderinfo={"xmp":b"test"}im.save("out.mpo",save_all=True,append_images=[second_im])
You can check if Pillow has been built against the zlib-ng version of thezlib library, and what version of zlib-ng is being used:
fromPILimportfeaturesfeatures.check_feature("zlib_ng")# True or Falsefeatures.version_feature("zlib_ng")# "2.2.2" for example, or None
TIFF images can now be saved as BigTIFF using abig_tiff argument:
im.save("out.tiff",big_tiff=True)
When opening a JPEG 2000 image, the comment may now be read intoinfo for J2K images, not just JP2 images.
With OpenJPEG 2.5.3 or later, Pillow can now save CMYK images as JPEG 2000 files.
C99 is now the minimum version of C required to compile Pillow from source.
Wheels are now built against zlib-ng for improved speed. In tests, saving a PNGwas found to be more than twice as fast at higher compression levels.