emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Viewing animated gif as inline video


From: Marco Wahl
Subject: Re: [O] Viewing animated gif as inline video
Date: Sat, 13 Apr 2019 22:06:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]