6

我已经搜索了很多关于在 Emacs 中打开图像的信息。我认为ImageMagick可以解决问题,但我似乎无法找到一种在 Emacs 中使用它的方法以及如何将它与 Emacs 集成?!

此外,任何更好的选择将不胜感激。

4

3 回答 3

5

Are you looking for something like the Emacs Image Manipulation mode? It uses mogrify from ImageMacgick.

于 2012-07-24T22:28:19.967 回答
5

使用Image-Dired

它已经包含在 Emacs 中。只需键入M-x image-dired并选择适当的目录。

于 2012-07-25T11:03:03.410 回答
3

我不确定你的意思。您可以像打开任何其他文件一样“在 Emacs 内”打开图像,只是C-x C-f为了找到它,并C-c C-c切换位图渲染。

代码方面,它看起来像这样:

(defimage test-image
    ((:file "~/Pictures/greenbug.xpm")))

(insert-image test-image)

或者更简单

(insert-image (create-image "~/Pictures/greenbug.xpm"))
于 2012-08-02T00:15:42.897 回答