我已经搜索了很多关于在 Emacs 中打开图像的信息。我认为ImageMagick可以解决问题,但我似乎无法找到一种在 Emacs 中使用它的方法以及如何将它与 Emacs 集成?!
此外,任何更好的选择将不胜感激。
我已经搜索了很多关于在 Emacs 中打开图像的信息。我认为ImageMagick可以解决问题,但我似乎无法找到一种在 Emacs 中使用它的方法以及如何将它与 Emacs 集成?!
此外,任何更好的选择将不胜感激。
Are you looking for something like the Emacs Image Manipulation mode? It uses mogrify from ImageMacgick.
使用Image-Dired。
它已经包含在 Emacs 中。只需键入M-x image-dired
并选择适当的目录。
我不确定你的意思。您可以像打开任何其他文件一样“在 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"))