Viewing Exotic Image Files

As you know, Emacs can display most of the common image formats such as SVG, JPEG, PNG, and GIF but what about formats, such as webp, that aren’t handled natively by Emacs? Álvaro Ramírez has another quickie that tells us how to do it.

It turns out to be simple, especially if you already have ImageMagick or one of a couple of other external image converters already on your system, it’s just a matter of telling Emacs to use the external image converter. Here’s the magic spell:

(setq image-use-external-converter t)

If you don’t already have ImageMagick installed, you might find it a worthwhile addition to your system. Previously, Ramírez considered the problem of combining a series of JPEGs into a single PDF and told us how to do that. His solution was in the context of his dwim-shell-command framework but it’s just a simple call to ImageMagick’s convert command. Many of his simple DWIM Emacs shell functions make use of ImageMagick so you might also want to consider adding dwim-shell-command to your Emacs configuration.

Ramírez has been blogging up a storm lately. Many of his posts offer actionable suggestions for solving the small but annoying problems that we all run into. If you haven’t already, you may want to add his feed to your RSS reader.

This entry was posted in General and tagged . Bookmark the permalink.