README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. General
  2. =======
  3. This is a library for manipulating (non-geospatial) images in GRASS GIS.
  4. The images2*.py files are a part of visvis library [1], specifically
  5. visvis.vvmovie. The files are from the visvis-1.8 version.
  6. [1] https://code.google.com/p/visvis/
  7. Changes to visvis
  8. =================
  9. In images2avi, the image format for temporary files is changed
  10. from JPG to PNG, to improve the resulting AVI. This makes the size larger,
  11. however the JPG format is unsuitable for maps in general.
  12. --- imaging/images2avi.py 2013-11-09 21:46:28.000000000 -0500
  13. +++ visvis-1.8/vvmovie/images2avi.py 2012-04-25 17:15:40.000000000 -0400
  14. @@ -79,7 +79,7 @@
  15. # Determine temp dir and create images
  16. tempDir = os.path.join( os.path.expanduser('~'), '.tempIms')
  17. - images2ims.writeIms( os.path.join(tempDir, 'im*.png'), images)
  18. + images2ims.writeIms( os.path.join(tempDir, 'im*.jpg'), images)
  19. # Determine formatter
  20. N = len(images)
  21. @@ -93,7 +93,7 @@
  22. # Compile command to create avi
  23. command = "ffmpeg -r %i %s " % (int(fps), inputOptions)
  24. - command += "-i im%s.png " % (formatter,)
  25. + command += "-i im%s.jpg " % (formatter,)
  26. command += "-g 1 -vcodec %s %s " % (encoding, outputOptions)
  27. command += "output.avi"
  28. Questions
  29. =========
  30. Should we make the visvis files PEP8 compliant? This would make
  31. merging of possible changes from visvis more difficult.