[GRASS-dev] [GRASS GIS] #3367: g.gui.animation: animated GIF export generates corrupted GIF files
GRASS GIS
trac at osgeo.org
Sat Jul 8 18:03:27 PDT 2017
#3367: g.gui.animation: animated GIF export generates corrupted GIF files
----------------------+---------------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: reopened
Priority: normal | Milestone: 7.2.2
Component: wxGUI | Version: svn-releasebranch72
Resolution: | Keywords: g.gui.animation
CPU: x86-64 | Platform: Linux
----------------------+---------------------------------
Comment (by annakrat):
My gifs are ok... Could you test this code snippet to see if the problem
is in the images2gif (likely)? Also do you have Pillow or PIL?
{{{
import os
from PIL import Image
from grass.imaging import writeGif
color_path = os.path.join(os.environ['GISBASE'], "docs", "html",
"colortables")
pil_images = [Image.open(os.path.join(color_path, c)) for c in
os.listdir(color_path)]
writeGif('/tmp/test.gif', pil_images, duration=0.2, repeat=True)
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3367#comment:6>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list