Emacs: View Image File

By Xah Lee. Date: . Last updated: .

Emacs image-mode lets you view and do some manipulation of images, such as rotate.

emacs image mode 2017 11 11 5219
emacs Alt+x image-mode

Open a image file. (Alt+x dired to open a dir, then Enter on a image file to open it. [see dired tutorial] )

Alt+x describe-modeCtrl+h m】 to see its doc and keys.

Here's most useful keys. Some of these features are in emacs 27 only. [see Emacs 27.1 Features (released 2020-08)]

n
image-next-file
p
image-previous-file
+
image-increase-size Hold Ctrl and scroll mouse wheel to zoom in/out.
-
image-decrease-size
g
revert-buffer
o
image-save
r
image-rotate
C-c C-c
image-toggle-display
C-c C-x
image-toggle-hex-display

Viewing Animation

Enter
image-toggle-animation
f
image-next-frame
b
image-previous-frame
F
image-goto-frame
a +
image-increase-speed
a -
image-decrease-speed
a 0
image-reset-speed
a r
image-reverse-speed

Here's a gif file you can play with, at vi_clippy_assistant.gif

vi clippy assistant
gif animation.

To delete the image file, Alt+x dired-jump then d x [see Emacs: File Manager, dired]. Or, use Emacs: Delete Current File.

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial

Emacs Tutorial

Emacs Init

Emacs Keys

ELisp

ELisp Examples

ELisp Write Major Mode


Emacs Tutorial

Quick Start

Manage Windows

File

Buffer

Find Replace

Copy/Paste

Unicode

Whitespace

Rectangle Edit

Line Wrap

Shell

View Special File

Working with Brackets

Org Mode

HTML

Emacs Efficiency

Misc