all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jason Rumney <jasonr@gnu.org>
To: Juri Linkov <juri@jurta.org>
Cc: 6981@debbugs.gnu.org
Subject: bug#6981: create-animated-image doesn't animate
Date: Mon, 06 Sep 2010 22:11:22 +0800	[thread overview]
Message-ID: <87k4mzm06t.fsf@home.jasonrumney.net> (raw)
In-Reply-To: <87wrr2ld3q.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 03 Sep 2010 21:40:57 +0100")

Juri Linkov <juri@jurta.org> writes:

> When looking at the attached animated image closer/farther to/from the screen,
> the face appears/disappears.  When looking with/without glasses, the face
> appears/disappears.  But when looking at it in Emacs, nothing changes.

Note the following limitation mentioned in the comment in image.c:

  /* Clear the part of the screen image that are not covered by
     the image from the GIF file.  Full animated GIF support
     requires more than can be done here (see the gif89 spec,
     disposal methods).  Let's simply assume that the part
     not covered by a sub-image is in the frame's background color.  */

The following seems to show the image animation with this limitation
(the black bars of the first frame disappear rather than remaining in
the transparent background of following frames):

(setq img (create-animated-image "~/oii.gif"))
(insert-image img)
(image-animate-start img)


The last line seems to be neccesary, even though create-animated-image
starts the animation itself. Other changes to the buffer contents seem
to stop the animation so that line needs to be evaluated again.





  parent reply	other threads:[~2010-09-06 14:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-03 20:40 bug#6981: create-animated-image doesn't animate Juri Linkov
2010-09-06 12:42 ` Stefan Monnier
2010-09-06 21:31   ` Juri Linkov
2010-09-06 14:11 ` Jason Rumney [this message]
2010-09-06 21:32   ` Juri Linkov
2011-05-29 21:38 ` Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k4mzm06t.fsf@home.jasonrumney.net \
    --to=jasonr@gnu.org \
    --cc=6981@debbugs.gnu.org \
    --cc=juri@jurta.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.