Anna Petrasova 2371cb8ec9 images2gif: PILLOW_VERSION is obsolete (#899) %!s(int64=4) %!d(string=hai) anos
..
Makefile aee0b78958 pythonlib: add image file manipulation functions to imaging %!s(int64=6) %!d(string=hai) anos
README aee0b78958 pythonlib: add image file manipulation functions to imaging %!s(int64=6) %!d(string=hai) anos
__init__.py 01e28f6a24 libpython: add library for animations (from visvis project) %!s(int64=11) %!d(string=hai) anos
images2avi.py c0c9afe0f7 wxGUI/animation: fix export (run as background thread) output animation file to avi format (#840) %!s(int64=4) %!d(string=hai) anos
images2gif.py 2371cb8ec9 images2gif: PILLOW_VERSION is obsolete (#899) %!s(int64=4) %!d(string=hai) anos
images2ims.py 7c49f3c38a lib python: improve documentation; PEP8 cleaning %!s(int64=10) %!d(string=hai) anos
images2swf.py d33152f1d5 Numerous typos fixed (identified with tools/fix_typos.sh) %!s(int64=8) %!d(string=hai) anos
operations.py aee0b78958 pythonlib: add image file manipulation functions to imaging %!s(int64=6) %!d(string=hai) anos

README

General
=======

This is a library for manipulating (non-geospatial) images in GRASS GIS.

The images2*.py files are a part of visvis library [1], specifically
visvis.vvmovie. The files are from the visvis-1.8 version.

[1] https://code.google.com/p/visvis/

Changes to visvis
=================
In images2avi, the image format for temporary files is changed
from JPG to PNG, to improve the resulting AVI. This makes the size larger,
however the JPG format is unsuitable for maps in general.

--- imaging/images2avi.py 2013-11-09 21:46:28.000000000 -0500
+++ visvis-1.8/vvmovie/images2avi.py 2012-04-25 17:15:40.000000000 -0400
@@ -79,7 +79,7 @@

# Determine temp dir and create images
tempDir = os.path.join( os.path.expanduser('~'), '.tempIms')
- images2ims.writeIms( os.path.join(tempDir, 'im*.png'), images)
+ images2ims.writeIms( os.path.join(tempDir, 'im*.jpg'), images)

# Determine formatter
N = len(images)
@@ -93,7 +93,7 @@

# Compile command to create avi
command = "ffmpeg -r %i %s " % (int(fps), inputOptions)
- command += "-i im%s.png " % (formatter,)
+ command += "-i im%s.jpg " % (formatter,)
command += "-g 1 -vcodec %s %s " % (encoding, outputOptions)
command += "output.avi"

Questions
=========
Should we make the visvis files PEP8 compliant? This would make
merging of possible changes from visvis more difficult.