How to open and edit images in Emacs

前端 未结 3 857
广开言路
广开言路 2021-01-01 00:17

I have searched a lot about opening image inside emacs. I think ImageMagick will do the trick but what I don\'t seem to be able to find is a way to use this inside Emac and

相关标签:
3条回答
  • 2021-01-01 00:53

    What about image-dired ? It is already included in emacs. Just type M-x image-dired and choose an appropriate directory.

    http://www.markus-gattol.name/ws/emacs_notes_cheat_sheets.html#sec8

    0 讨论(0)
  • 2021-01-01 01:07

    Not sure what you mean ; You can open an image "inside Emacs" just like any other file, just C-x C-f to find it, and C-c C-c to toggle the bitmap rendering.

    Code-wise, it looks like this:

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

    Or even simpler

    (insert-image (create-image "~/Pictures/greenbug.xpm"))
    
    0 讨论(0)
  • 2021-01-01 01:14

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

    0 讨论(0)
提交回复
热议问题