mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-27 09:10:34 +03:00
Python Imaging Library (Fork)
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> |
||
---|---|---|
.github | ||
.travis | ||
depends | ||
docs | ||
libImaging | ||
PIL | ||
Scripts | ||
Tests | ||
Tk | ||
winbuild | ||
_imaging.c | ||
_imagingcms.c | ||
_imagingft.c | ||
_imagingmath.c | ||
_imagingmorph.c | ||
_imagingtk.c | ||
_webp.c | ||
.coveragerc | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.landscape.yaml | ||
.travis.yml | ||
appveyor.yml | ||
build_children.sh | ||
CHANGES.rst | ||
decode.c | ||
display.c | ||
encode.c | ||
LICENSE | ||
Makefile | ||
MANIFEST.in | ||
map.c | ||
mp_compile.py | ||
outline.c | ||
path.c | ||
profile-installed.py | ||
py3.h | ||
README.rst | ||
RELEASING.md | ||
requirements.txt | ||
selftest.py | ||
setup.py | ||
test-installed.py | ||
tox.ini |
Pillow ====== Python Imaging Library (Fork) ----------------------------- Pillow is the friendly PIL fork by `Alex Clark and Contributors <https://github.com/python-pillow/Pillow/graphs/contributors>`_. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. .. start-badges .. list-table:: :stub-columns: 1 * - docs - |docs| * - tests - | |linux| |macos| |windows| |coverage| |health| * - package - |zenodo| |version| |downloads| .. |docs| image:: https://readthedocs.org/projects/pillow/badge/?version=latest :target: https://pillow.readthedocs.io/?badge=latest :alt: Documentation Status .. |linux| image:: https://img.shields.io/travis/python-pillow/Pillow/master.svg?label=Linux%20build :target: https://travis-ci.org/python-pillow/Pillow :alt: Travis CI build status (Linux) .. |macos| image:: https://img.shields.io/travis/python-pillow/pillow-wheels/latest.svg?label=macOS%20build :target: https://travis-ci.org/python-pillow/pillow-wheels :alt: Travis CI build status (macOS) .. |windows| image:: https://img.shields.io/appveyor/ci/python-pillow/Pillow/master.svg?label=Windows%20build :target: https://ci.appveyor.com/project/python-pillow/Pillow :alt: AppVeyor CI build status (Windows) .. |coverage| image:: https://coveralls.io/repos/python-pillow/Pillow/badge.svg?branch=master&service=github :target: https://coveralls.io/github/python-pillow/Pillow?branch=master :alt: Code coverage .. |health| image:: https://landscape.io/github/python-pillow/Pillow/master/landscape.svg :target: https://landscape.io/github/python-pillow/Pillow/master :alt: Code health .. |zenodo| image:: https://zenodo.org/badge/17549/python-pillow/Pillow.svg :target: https://zenodo.org/badge/latestdoi/17549/python-pillow/Pillow .. |version| image:: https://img.shields.io/pypi/v/pillow.svg :target: https://pypi.python.org/pypi/Pillow/ :alt: Latest PyPI version .. |downloads| image:: https://img.shields.io/pypi/dm/pillow.svg :target: https://pypi.python.org/pypi/Pillow/ :alt: Number of PyPI downloads .. end-badges More Information ---------------- - `Documentation <https://pillow.readthedocs.io/>`_ - `Installation <https://pillow.readthedocs.io/en/latest/installation.html>`_ - `Handbook <https://pillow.readthedocs.io/en/latest/handbook/index.html>`_ - `Contribute <https://github.com/python-pillow/Pillow/blob/master/.github/CONTRIBUTING.md>`_ - `Issues <https://github.com/python-pillow/Pillow/issues>`_ - `Pull requests <https://github.com/python-pillow/Pillow/pulls>`_ - `Changelog <https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst>`_ - `Pre-fork <https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst#pre-fork>`_