Pillow/PIL
Leonid Bloch 28b818974e Allow to save tiff stacks from separate images
This is a quick solution that will allow to save tiff stacks from
separate images, e.g. from Numpy arrays.
Previously, tiff stacks could be saved only from multiframe images.
This behavior is similar to what is possible now with GIFs.

Note however, that for correct results, all the appended images should
have the same encoder{info,config} properties.

Example:

import numpy as np
from PIL import Image
a = np.ones((100,100,100), dtype=np.uint8)
imlist = []
for m in a:
    imlist.append(Image.fromarray(m))

imlist[0].save("test.tif", compression="tiff_deflate", save_all=True,
               append_images=imlist[1:])

(Should result in a 100-frame, 100x100 tiff stack.)

Signed-off-by: Leonid Bloch <leonid.bloch@esrf.fr>
2017-02-17 00:57:00 +02:00
..
__init__.py 4.1.0.dev0 version bump 2017-01-02 04:06:48 -08:00
_binary.py Removed TODO resolved in #1121 2017-01-07 10:14:49 +11:00
_tkinter_finder.py Flake8 fixes 2016-09-03 12:17:22 +10:00
_util.py flake8 2014-07-06 01:50:24 +03:00
BdfFontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
BmpImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
BufrStubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ContainerIO.py Converted documentation 2016-09-24 19:10:46 +10:00
CurImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
DcxImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
DdsImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
EpsImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ExifTags.py Moved EXIF tag to be in hex order 2016-04-19 19:50:28 +10:00
features.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FitsStubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FliImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FpxImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
FtexImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GbrImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GdImageFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GifImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GimpGradientFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GimpPaletteFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
GribStubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
Hdf5StubImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
IcnsImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
IcoImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
Image.py Expose and test radial_gradient 2017-01-29 18:44:24 +02:00
ImageChops.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageCms.py Check type of items passed into to ImageCms.ImageCmsProfile, fixes #2037 2016-09-26 14:56:00 -07:00
ImageColor.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageDraw.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageDraw2.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageEnhance.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageFilter.py Fixed redefinition of built-in 2015-04-24 16:02:39 +10:00
ImageFont.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageGrab.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMath.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMode.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageMorph.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageOps.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImagePalette.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImagePath.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageQt.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageSequence.py Merge pull request #1686 from radarhere/seek 2016-01-31 09:08:09 -08:00
ImageShow.py Fix "invalid escape sequence" warning in Python 3.6 2016-09-27 19:26:57 -04:00
ImageStat.py Replaced old-style classes 2015-05-27 00:07:21 +10:00
ImageTk.py comments 2017-01-26 05:55:18 -08:00
ImageTransform.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImageWin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
ImtImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
IptcImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
Jpeg2KImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
JpegImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
JpegPresets.py Changed no longer found URL to archive URL 2016-02-28 22:36:35 +11:00
McIdasImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MicImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MpegImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MpoImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
MspImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
OleFileIO.py Removed shebang line from OleFileIO 2016-12-25 20:18:50 +01:00
PaletteFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PalmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcdImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcfFontFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PcxImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PdfImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PixarImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PngImagePlugin.py Restricted PNG encoderinfo chunks to valid values when saving 2017-01-21 16:57:03 +11:00
PpmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PsdImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PSDraw.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
PyAccess.py remove end of file banner from all files 2016-07-10 14:11:28 +03:00
SgiImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
SpiderImagePlugin.py Added context managers 2016-12-28 09:54:10 +11:00
SunImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
TarIO.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
TgaImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
TiffImagePlugin.py Allow to save tiff stacks from separate images 2017-02-17 00:57:00 +02:00
TiffTags.py Drop support for Python 2.6 2016-11-22 04:23:55 -08:00
WalImageFile.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
WebPImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
WmfImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
XbmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
XpmImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00
XVThumbImagePlugin.py Replaced absolute PIL imports with relative imports (#2349) 2017-01-17 13:22:18 +00:00