Questions tagged [images]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

helm with image support?

Suppose I have the data (setq data '((john "/path/to/selfie/john.jpg" "john@domain.com") (mary "/path/to/selfie/mary.jpg" "mary@domain.com"))) How ...
1
vote
1answer
22 views

How can I display only current png and hide others in org-mode?

I have a lot of inline images and I want to disply only 1 in buffer and hide others while viewing. With M-x org-toggle-inline-images I can do this for the entire buffer, but it's too much for me. So, ...
1
vote
0answers
26 views

org-display-remote-inline-images not working

I recently saw that a variable org-display-remote-inline-images was added to Org mode. This is a huge one for technical documentation, but sadly I was not able to get it to work. I tried cache and ...
0
votes
1answer
26 views

How to control image sizes inside of table

I know that you can write something like: #+attr_html: :width 250 px [[./linl/to/image.jpg]] But what if I have them inside of a table like: | [[./linl/to/image.jpg]] | [[./linl/to/image2.jpg]] | ...
2
votes
1answer
226 views

set `all-the-icons-dired` to use consistent directory icon?

I installed all-the-icons-dired package from melpa, however, it does not use consistent icons for directories. Some directories have their own special icon. Example, these are two directories: The ....
0
votes
1answer
60 views

Copy images in buffer

I'd like to copy part of a buffer including all images. The code below copies the text but not the image. How do I copy images and how do I search for images in a buffer? (insert (with-current-...
1
vote
1answer
185 views

How do I display an image full width?

I am using GNU Emacs to display the cover of the album mpd is currently playing, inserting it into a *jukebox* buffer with this code: (put-image (create-image albumartname 'imagemagick nil :width ...
0
votes
1answer
83 views

How to set width for subfigures inside a table in a org-mode file?

I'd like to use subfigures in org-mode files. In MS Word, this could be easily done by inserting the subfigures of a figure into a table with invisible borders. Then the size of each subfigure can be ...
2
votes
1answer
209 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 ...
0
votes
1answer
46 views

how to set up Emacs so it shows images

Linux Mint 20 Emacs 26.3 I installed package dired-icon (https://www.topbug.net/dired-icon/) and restarted Emacs. I then did M-x dired-icon-mode But icon in dired mode does not show and in the mini ...
1
vote
0answers
66 views

Resize inline images in org-mode to be fit a max size

In org mode, I am trying to resize inline images to fit a 100px x 100px square, which would be particular useful in the cases in which an image is much taller that wider, or vice versa. In other words ...
2
votes
1answer
151 views

org-mode: Set maximum image width limit

Using org-image-actual-width will both downscale and upscale. I just want to downscale big images to fit the current width. Any ideas?
0
votes
1answer
65 views

Is it possible to displaying Inline Images in Emacs markdown-mode

I am using GNU Emacs 26.3 inside a remotely connected linux machine. I was wondering is it possible to display inline images in Emacs markdown-mode? Seems like it is possible (link) in org-mode? Using ...
3
votes
1answer
576 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 ...
9
votes
2answers
2k views

Default Inline Image Background in Org Mode

When an image has a transparent background, Emacs of course respects that. Unfortunately, this can lead to issues with display: Is there a way to display a specific color (e.g. white) behind the ...
1
vote
1answer
49 views

Replacing text with svg image via font lock

I've made small function to create SVG tags (see below) and I would like to use the image property of faces to replace some keywords. I'm not sure how to do that and if it is possible. For example, ...
1
vote
1answer
102 views

Scale images to fit the frame width by default?

When displaying images in Image mode the default seems to be to scale the image to fit completely within the frame. (Or within the document area of the frame to be more precise.) I find this ...
0
votes
0answers
23 views

How can I specify max height and/or width of images displayed in eww?

eww loads images at full size which consumes far too much space in some sites. How can I scale all images on a page (or all pages) so that they don't exceed a specified height or width?
5
votes
2answers
2k views

how to auto scale images to fit into a slide in org mode export to beamer?

When I insert an image into the slide it gets cropped to fit into the slide. How do make an image to scale to fit in without cropping or padding? To include an image I use: #+LaTeX:\...
2
votes
1answer
169 views

Display JPEGs scaled to fit buffer, but PNGs without scaling?

In almost all cases, I want to see JPEGs such as photos scaled to the current buffer size. This is the default with image-mode. However, for PNG files, primarity screenshots, I want to view them ...
22
votes
4answers
9k views

Shrink/Zoom/Scale images in image-mode

With Emacs' doc-view-mode I can easily shrink/zoom/etc PDFs, however, I would like to be able to do the same thing with images. Currently when I open an image I cannot adjust the zoom level to fit it ...
1
vote
0answers
73 views

How can I rotate and then save an image with Emacs 27.1?

It's nice that 27.1 has in-built image rotation. No dependency on ImageMagick for that. However, it seems to only allow rotation for viewing (r/l) while I don't see any way of saving that rotated ...
1
vote
1answer
334 views

SVG image display blurry

When I open SVG files in Emacs they appear blurry. The SVG files themselves are fine (when I open them in Firefox they scale perfectly). My Emacs is compiled with svg support (librsvg), so it should ...
2
votes
2answers
213 views

How to open image files with an external application in Dired?

Linux Mint 19, Emacs 26.1 I has different app to show image.Like Drawing, Image Viewer, XnView. And from Nemo file manager I success open any images by this app. Nice. But I want to open image in ...
0
votes
1answer
85 views

Can not show inline image in org file: “No images to display inline”

Linux Mint 19.3 Emacs 26.3 Here is my org file: * TODO Test insert image Test this #+CAPTION: This is the caption for the next figure link (or table) #+NAME: Deepspace [[KLOCKA6.JPG]] * ...
0
votes
0answers
32 views

Can't open image inside org file: openwith-file-handler

Linux Mint 19.3 Emacs 26.1 In my org file: * TODO Test insert image Test this #+CAPTION: This is the caption for the next figure link (or table) #+NAME: Deepspace [[./KLOCKA6.JPG]] * ...
0
votes
0answers
22 views

Emacs PNG as a text showing freezes

I am trying to see image as a text but when I compile this program in Emacs it freezes. Is the problem in Emacs when showing images as text? My Python code is right below. import requests as req ...
0
votes
0answers
19 views

emacs Imagemagick apply color transformation

I was looking to apply color transformation to images displayed in emacs. For example, with imagemagick, the following will invert image color. convert input.png -channel RGB -negate -modulate 100,100,...
16
votes
2answers
10k 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. ...
0
votes
0answers
25 views

insert-image doesn't work in the org code block

I have an org file, which contains the following text: #+begin_src elisp (insert-image (create-image "/home/searene/Pictures/Selection_007.png")) #+end_src When I press C-c C-c to ...
1
vote
1answer
254 views

Multiline mode-line using dynamic generated text images

I've been doing experiments at displaying static text images in the mode-line using Imagemagick to generate the image (see below). I would like now to generate such an image in a dynamic way, ...
9
votes
3answers
2k 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 ...
8
votes
2answers
1k 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 ...
4
votes
0answers
147 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 ...
0
votes
0answers
39 views

How to display inline images from web links

Do you know if there is a way to display inline remote images, as in inserting their link and having them displayed in orgmode? Thanks.
0
votes
0answers
60 views

Org-mode, how can I export my images in different float enviroment?

I need to export some images in different type of float in latex (i.e. \begin{map}). An example of latex code is here. How can I define image attributes in org-mode to achieve that?
1
vote
0answers
48 views

Preview images, and PDFs inside a SSH terminal session or inside emacsclient session via SSH?

I work remotely to Linux servers, writing R scripts with ESS. Rstudio works well if I have a fast and stable GUI-based remote desktop connection to the server. Rstudio server also works OK if I have ...
0
votes
0answers
118 views

Ubuntu Emacs 26.3 svg image viewing not working

harold@cayse:~$ emacs --version GNU Emacs 26.3 Copyright (C) 2019 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms ...
2
votes
2answers
69 views

image-dired: Change thickness of cursor

On a hires screen I find it really hard to see on which image the cursor currently is, because the rectangle around the image is very thin. Is it possible to increase the line width of that rectangle? ...
1
vote
0answers
41 views

Enlarge a svg image in org

I have such a svg picture and test equality by using the following relations: [[file:fig/math/55d25a70d9db3c6d95666151a04c4869.svg]] We can express these rules as procedures: Then enlarge it What'...
0
votes
0answers
31 views

Can image-dired track renamed files?

I would like to view images using image-dired, then rename them. What I do at the moment: Open image-dired with my directory of choice. Mark an image that I want to rename. In the corresponding dired+...
2
votes
0answers
59 views

Why is EWW unable to place images into tables

Web pages are rendered with the simple html renderer shr in the Emacs webbrowser EWW. Pitingly, images in tables are displayed below the tables. The source code of shr contains the following comment ...
2
votes
0answers
91 views

Change color of preview expressions in Auctex

In the customize group "Preview Appearance", I click on "Preview Face" and set "Foreground" to "red". To the right, I see the word "sample" displayed in red. Then I select "Save for Future Sessions." ...
2
votes
0answers
130 views

Render bmp images in org mode

I want to quickly embed images in an org document and am trying to use org-download to help me. However, due to a silly bug in Firefox, images are saved as .bmp files. The result is that org-...
2
votes
0answers
39 views

Intelligent downscaling for inline images

I'd like to achieve the following intelligent scaling of inline images: If image-actual-width > 800: scale it down to 800 Else: display image without any further scaling Doing (setq org-image-...
0
votes
0answers
226 views

How to load image using iimage-mode when I first open a markdown file?

I have a file which embeds an image ![](file://tmp.jpg) I have added iimage mode to the markdown mode hook and even added recenter to it (add-hook 'markdown-mode-hook 'iimage-mode) (add-hook '...
3
votes
2answers
214 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
1answer
1k 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, ...
7
votes
4answers
6k views

Org-mode: No images to display inline

I am trying to display images in org files. I have used links such as [[file:~/path/to/image.png]] When I click on the link, it gives me another buffer in which there are only symbols. When I put ...
0
votes
1answer
34 views

`create-image` works with file-location input but fails with string-of-bytes input

Am wondering if anyone can tell me what I'm doing wrong. Basically the commented out code fails.. thanks (let* ((img-file "/tmp/x.png") (img-str (with-temp-buffer (insert-file-contents img-...