emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Viewing animated gif as inline video
Date: Sat, 13 Apr 2019 22:06:27 +0200	[thread overview]
Message-ID: <84a7gtk6v0.fsf@gmail.com> (raw)
In-Reply-To: 77DFD1D3-A687-4F2A-BF7F-E244CD7845C1@gmail.com

Hi Marvin,

> Does anybody know how to view an animated gif as an inline video? I
> can see the first frame as an inline image, but I am unable to view
> the video.

{ M-x customize-variable RET org-file-apps RET }

opens my customization of variable org-file-apps which has the entry:

Hide Org File Apps:
INS DEL Cons-cell:
            Choice: Value Menu Extension: \.gif\'
            Choice: Value Menu Function: (lambda (file link) (let ((my-image (create-image file)) (tmpbuf (get-buffer-create "*gif"))) (switch-to-buffer tmpbuf) (erase-buffer) (insert-image my-image) (image-animate my-image nil t)))

AFAICS with this setting a press of RET on a gif with animation in an
Org file opens an extra buffer that shows the animation.


HTH

  parent reply	other threads:[~2019-04-13 20:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-13 18:21 Viewing animated gif as inline video Marvin Doyley
2019-04-13 19:52 ` briangpowell
2019-04-13 20:13   ` briangpowell
2019-04-14  0:09     ` Marvin Doyley
2019-04-13 20:06 ` Marco Wahl [this message]
2019-04-15  4:38 ` stardiviner

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=84a7gtk6v0.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --cc=emacs-orgmode@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).