[GRASS-dev] [GRASS GIS] #3367: g.gui.animation: animated GIF export generates corrupted GIF files
GRASS GIS
trac at osgeo.org
Sun Jul 9 00:32:10 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 hellik):
Replying to [comment:6 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)
>
> }}}
lines above tested
{{{
display test.gif
display-im6.q16: corrupt image `test.gif' @ error/gif.c/ReadGIFImage/1386.
}}}
the same error
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3367#comment:7>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list