GS and Gif images

Eric Shun invisio22@REDACTED
Tue Apr 4 15:48:20 CEST 2006


Hello,

I have two questions:

1) How can I resize an image with gs?
2) I have to simulate an animation with 5 gifs (like an animated gif). I
tried this:

loop(Image) ->
  gs:config(Image,Canvas,[{load_gif,"1.gif"}]),
  timer:sleep(10),
  gs:config(Image,Canvas,[{load_gif,"2.gif"}]),
  timer:sleep(10),
  gs:config(Image,Canvas,[{load_gif,"3.gif"}]),
  timer:sleep(10),
  gs:config(Image,Canvas,[{load_gif,"4.gif"}]),
  timer:sleep(10),
  gs:config(Image,Canvas,[{load_gif,"5.gif"}]),
  timer:sleep(10),
 loop(Image).

The problem is: Doing this, the memory doesn't stop to grow... until
overflow...
How can I do that properly?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20060404/f535b4a0/attachment.htm>


More information about the erlang-questions mailing list