Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

for Emacs support (edit, display, etc.) of images (e.g., jpeg, png, svg). For questions about image metadata, use the tag 'image-mode.

3
votes
2answers
68 views

xpm: Change displayed image on mouse-over in `header-line-format`

Q: How do I programmatically instruct Emacs to change a displayed image (XPM) on mouse-over in the header-line-format? For example, the following image has a black circle with a white letter X. On ...
1
vote
1answer
33 views

Displaying LaTeX equations with EWW

I've been using EWW and I noticed that it displays inline LaTeX expressions ($ ... $) but it fails to display those that have their own line ($$ ... $$). I'm attaching a print below. Have a look the ...
0
votes
1answer
20 views

Make gnus display inline html images by default

How can I make gnus display inline images from html articles by default? A command exists to display them on a per-article basis: gnus-article-show-images however I would like this behavior ...
0
votes
1answer
35 views

How to check whether ImageMagick is setup correctly on macOS?

I installed emacs on macOS by brew cask install emacs. But the functionality of resizing images doesn't work as expected. So, how to check whether the emacs distribution is built with imagemagick ...
0
votes
0answers
57 views

exporting .svg images to .pdf in org-mode

I have a set of .svg images that I need to export to pdf by using org-mode. Even though I can see the images inside emacs, I cannot export them to .pdf. On the other hand, if I export my .org file to ...
3
votes
1answer
102 views

Emacs Popup with text and picture a la wikipedia suggestion

I'm looking for a way to display both text and a picture in Emacs in a pop-up, as it is done in Wikipedia. Is there already a solution for this?
3
votes
1answer
46 views

How to save SVG image to disk?

Looking for a tool to programmatically generate SVG images, I found that Emacs 26 can do it out of the box! Example adapted from the Elisp reference manual: (require 'svg) (let ((svg (svg-create 400 ...
1
vote
0answers
22 views

dvisvgm baseline in org-mode HTML export

When using #+OPTIONS: tex:dvisvgm and exporting to HTML with org-mode, the baseline of the latex exported images does not match the baseline of the text (when using subscripts, for instance). Is there ...
1
vote
1answer
124 views

SVG image from org-babel

I am trying to create a SVG image from latex code in an org-mode file. #+name: foo #+header: :file foo.svg #+begin_src latex bar #+end_src But I keep getting the following error: executing Latex ...
6
votes
1answer
187 views

Org mode: is it possible to display ONLINE images?

Assuming I want to have an org buffer in which I can preview images from url which I don't want to store on my hard drive - is there a possibility to use a solution similar to org links and display ...
0
votes
0answers
19 views

wrong location of displaying image in org mode

After running C-c C-c with ob-plantuml, I got this wrong location of image. , The correct location (as usual) should be,
0
votes
0answers
37 views

Emacs can't display well png with non-rgb colormap

I'm trying to use w3m to display image in emacs, however I saw that for some reasons it's unable to display correctly the png files that have a non-rgb colormap. Here is an example: All the images ...
3
votes
1answer
94 views

Alignment of images in HTML export

I know that I can align images in html export with the property #+ATTR_HTML: :align right upon each image link. But can I set a default for the org-document so that I do not have to add the property ...
2
votes
0answers
61 views

How to see preview of svg file I'm editing?

I'm editing a svg file and want to see how it looks like. I tried opening a window with the same buffer and change to image-mode but it change the mode in both windows. I tried opening the same file ...
2
votes
0answers
42 views

images on github wiki and PDF export

I have a org-mode document, with some inline images: [[path/to/image.png]] These render properly on GitHub wikis, but fail when I use org-latex-export-to-pdf. However, I can get the pdf export to ...
2
votes
2answers
102 views

How can I yank images from Emacs?

I want to copy images from Emacs to macOS clipboard. I have tried selecting them and yanking, which hasn't worked. Google also didn't have a solution.
1
vote
0answers
49 views

org-mode and insert-sliced-image

I read in the Emacs manual online about using insert-sliced-image to create smooth scrolling with inline images. I would like to use this to override org-toggle-inline-images, so that I can get ...
0
votes
1answer
109 views

png image support and pdftools

I have pdftools install and wish to use it with auctex. However, I cannot view the pdf as I get the error: PNG image supported not compiled into Emacs Output is simply the raw pdf. I am using emacs ...
2
votes
0answers
270 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
1
vote
1answer
279 views

Org-mode export: Resize Plantuml diagram when exporting to PDF and image gets repeated

I have a simple PlantUML diagram in an org file and I want to export the entire document to pdf. The problem is that the diagram is embedded correctly, but the picture takes up an entire page. SECOND, ...
2
votes
0answers
50 views

org-latex-fragment gets cutoff

I use dvisvgm to generate latex fragments. However, some of my equations seem to be cut off. One example is below The svg file generated does not have the cutoff but the image as displayed in emacs ...
5
votes
1answer
266 views

Open SVG files in XML mode

When opening a vector icon text file for editing, Emacs first tries to display it as an image. That is wrong ; If the file has errors, Emacs (25.3.2 - x86_64-pc-linux-gnu, GTK+ Version 3.18.9) crashes ...
0
votes
0answers
51 views

Generate graphics from scheme-babel export?

I'm using a nice package from a Racket user called MetaPict, however, I don't know how to export the image produced. Here's some Racket code calling MetaPict: #+begin_src scheme :session mainsession :...
0
votes
0answers
37 views

emacs dired create a copy of image with 50% brightness

I know in the command line in linux i can use image magick to quickly brighten an image convert nebula.landscape.jpg -brightness-contrast 30 bright.jpg im trying to create a function in emacs (dired?...
1
vote
1answer
31 views

How to configure mouse button to execute a program in emacs

I have a lot of video files I want to filter through and delete if they are uninteresting. I opened the directory of video files in emacs and I want a left-click on the file to play that file in vlc. ...
0
votes
1answer
199 views

Cannot open JPEG files in new emacs build

When I try to open jpeg images on a new emacs build I get the error message Cannot display image: (This Emacs mishandles this image file type) I compiled on Debian Jessie and the configure commands ...
0
votes
1answer
413 views

render image in .org file after creating its link

After I insert this link into an .org file, it looks like a link: [[./relative_path/rock.jpg]] Is there a convenient way to render the image? Opening and closing Emacs renders the image, but it's ...
0
votes
1answer
352 views

wanderlust: getting application/octet-stream images to display?

In wanderlust, if an attachment has an image/* content type, the image will be properly displayed in the message buffer. For example ... Content-Type: image/jpeg; name="foobar.jpg" However, some ...
2
votes
2answers
379 views

iimage-mode - resize an image in Markdown mode to fit the window

I would love to be able to see images in Markdown that are rescaled to fit into my window. I googled for the answer but could not find how to rescale images shown with iimage-mode in Markdown. I can ...
1
vote
1answer
345 views

25.2 - documentation for “experimental cairo drawing”

Can anyone provide some hints on how the "experimental cairo drawing" works in recent GNU Emacs? Specifically, what can I do to test this functionality (as requested in release docs). [joe@localhost ...
3
votes
1answer
136 views

How can I make inline images bigger by default?

I'm a new emacs user (spacemacs, really, switched from Vim), and I'm having difficulty configuring emacs on my HiDPI display. Basically, I'm suffering from this bug. The problem is that, while I can ...
1
vote
1answer
91 views

org mode inline image from elisp code block

Below code will draw a tree graph with dot, it works fine but the output graph has been included in "". #+NAME: nodes | From | To | Weight | |------+----+--------| | A | B | 3 | | A | C |...
1
vote
2answers
191 views

wanderlust: size and position of displayed images?

Using wanderlust in emacs-25.1.x, how can I specify the display size and position in the message buffer of attached images that are shown inline? I want to display smaller versions of the images, and ...
7
votes
3answers
2k views

org mode inline image display size

I wish to display org mode inline image (in emacs) with width 400 but actually it always show it as original size. My steps as below: Install ImageMagick with below command: sudo port install ...
1
vote
1answer
644 views

Emacs is compiled with imagemagick and has right PATH but still cannot use it

I want to use emacs with imagemagick to enable dynamic resizing of images in org-mode (https://www.reddit.com/r/emacs/comments/44id5o/how_to_install_emacs_with_imagemagick_support/). This used to work ...
2
votes
0answers
40 views

xpm-images: `:color-symbols` not working?

I'm trying to load an xpm image file looking like the following: /* XPM */ static char *_0[] = { /* columns rows colors chars-per-pixel */ "15 16 3 1 ", "w c white", "b c black", " c None", /* ...
6
votes
1answer
98 views

How can I access the :file src header argument inside the src block

I'm wondering how to access the :file header argument passed to a src block, from inside the src block itself? I'm wondering specifically for python, and in this case ipython with %matplotlib inline ...
5
votes
1answer
363 views

org-mode doesn't display image when LaTeX Image Attributes are included

I'm facing this problem that when I include some LaTeX specific attributes for my image, then the image doesn't display inside org-mode (although it is displayed fine in my exported LaTeX PDF). For ...
1
vote
1answer
139 views

How to overwrite defconst/defcustom value in init file, tabbar arrow button image for example

I was trying to change defconst value for a tabbar image, the following lines are defined in tabbar.el: (defconst tabbar-scroll-left-button-enabled-image '((:type pbm :data "\ P2 13 13 255 255 255 ...
1
vote
1answer
117 views

Org mode 20161102 Latex export: Images without {center} environment

Present 20161102 org mode now exports images by default wrapped in \begin{center}..\end{center} environments. This destroys layouts and confuses export scripts made with earlier versions or different ...
2
votes
3answers
1k views

Imagemagick not supported in Emacs on windows?

Update: As of early October 2016 emacs for windows does not support ImageMagick versions 7.x or greater as discussed here and here. Presumably some combination of an earlier version of emacs for ...
0
votes
1answer
86 views

Image tooltips doesn't work in other buffers

Consider the following content of a file called image-tooltips.el which I source into my .emacs file via load-file. Displaying the image tooltip works if I put a ;\includegraphics{myfile.jpg} into ...
0
votes
1answer
247 views

Where to download image library for Emacs 64bit Windows version?

I would like to use Emacs 64bit Windows version to view images sometimes, PNG images and JPEG images mostly. The README file says: Emacs can also support some other image formats with ...
5
votes
2answers
846 views

Embed Image as Base64 on HTML export from Orgmode

The goal is to make a self-contained html file when exporting from orgmode so that the images are intrinsic to the file and a single html file will can be distributed (I am trying to do this for a ...
6
votes
2answers
1k views

Create image links in org-mode

I want to create clickable image links in org-mode. This would be equivalent to: <a href="path-to-file"> <img src="path-to-image"> </a> Currently, I can display inline image ...
1
vote
2answers
106 views

Image tooltips with pdf

I want the image tooltip code also make work for pdf format, thus I added the pdf keyword to the file extension list of the original code (http://kitchingroup.cheme.cmu.edu/blog/2016/03/21/Displaying-...
0
votes
0answers
80 views

Images in tooltip don't work

I want to view a preview of images if I go with the mouse over a image file-name, say "Tux.png". I tried this approach: (defvar image-tooltip-re (concat "\\(?3:'\\|\"\\)\\(?1:.*\\." ...
1
vote
1answer
1k views

display images in emacs w3m in terminal

I would like w3m in emacs (in a terminal) to show me pictures. Showing pictures in emacs gui works: Showing pictures in the terminal without emacs works: But in emacs w3m running in a terminal, no ...
4
votes
0answers
70 views

Emacs: mark contents as type image in copy to clipboard

When using pdf-tools (https://github.com/politza/pdf-tools) I'd like to be able to select and area and copy it to the clipboard as an image, so as to insert into other applications. Selecting is easy ...
7
votes
2answers
3k views

Downscaling inline images in org-mode

I used to be able to scale down an inline image in org-mode with #+attr_html: :width 650 px [[file:~/org/def/202a3-9.jpeg]] But now it doesn't work anymore, presumably because of an update to 8.3.5. ...