imaginglib.dox 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*! \page imaging Python library for animations
  2. \tableofcontents
  3. \section imagingIntro Introduction
  4. Library python.imaging is a third-party python library for animations.
  5. It comes from visvis project (https://code.google.com/p/visvis/), version 1.8.
  6. Library contains 4 main files: images2avi.py, images2gif.py, images2ims.py, images2swf.py for exporting
  7. AVI video file, animated GIF, series of images and SWF file format, respectively.
  8. There are functions for reading/writing those formats (writeAvi(), readAvi(), writeGif(), readGif(),
  9. writeIms(), readIms(), writeSwf(), readSwf()). Library requires PIL (Python Imaging Library) and numpy packages.
  10. The input of all write functions are PIL images.
  11. Please read README in library's directory.
  12. Example:
  13. \code{.py}
  14. from grass.imaging import writeIms
  15. ...
  16. writeIms(filename=path/to/directory/anim.png, images=myPILImagesList)
  17. \endcode
  18. This creates files anim1.png, anim2.png, ... in path/to/directory.
  19. \section imagingAuthors Authors
  20. Almar Klein (see licence in header of library files)
  21. */