The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

24

Yes there is a package for recording screencasts in Emacs, it's called camcorder.el I can't promise anything yet, as I've only tested it on my computer, but I can tell you it works for me. :-) To use it, simply call M-x camcorder-record. A new smaller frame will popup and recording starts. When you're finished, hit F12 and wait for the conversion to ...


20

I posted a similar question on /r/Emacs. For recording GIFs, your main options are: byzanz-record: # 12 second duration, top left corner, 700x800 pixel gif $ byzanz-record -d 12 -x 0 -y 0 -w 900 -h 700 output.gif # more documentation at https://wiki.ubuntu.com/CreatingScreencasts LICEcap (Windows and OS X) ffmpeg/avconv (avconv is a fork of ffmpeg): $ ...


15

Such functionality is provied by packages: image-dired-thumbnail-mode With point in the thumbnail buffer, you can type RET (image-dired-display-thumbnail-original-image) to display a sized version of it in another window. This sizes the image to fit the window. It uses ImageMagick's convert command. You can also use image-dired-external-viewer to avoid ...


15

NOTE: You need to have ImageMagick installed on your system (convert executable) for this solution to work. How this solution is implemented The function org-include-img-from-pdf is the workhorse that does the PDF to Image format conversion using convert. If the org file contains # ()convertfrompdf:t, it will be assumed that the user has a pdf file that ...


13

Background Eww, as many other packages, uses the display text property to display images. That is why toggling the invisible text property didn’t help. You’re making the text itself invisible but the display property is still being shown. In fact, this is something so common that the code below should work on any buffer that displays images (not just eww). ...


11

The mode line is rendered from a list of segments, each of which come with their own special rules. See Mode Line Data for the details. The symbol section contains a crucial hint to make your code work: Unless SYMBOL is marked as “risky” (i.e., it has a non-‘nil’ ‘risky-local-variable’ property), all text properties specified in SYMBOL’s value are ...


10

First of all: Use the third argument. Both data and file are represented by a string, you need to tell create-image which one you're using. If you don't tell it, it defaults to file, which is why your data version wasn't working. (insert-image (create-image nic-profile-img-data 'jpeg t)) The third argument, when non-nil, specifies that the first argument ...


10

If you don't mind the image being displayed in a different buffer, just do M-x ffap If you insist on the image appearing in the current buffer, you'll need to do just a little more work: (require 'url) (defun insert-image-from-url (&optional url) (interactive) (unless url (setq url (url-get-url-at-point))) (unless url (error "Couldn't find ...


8

Textfields and buttons (like, in the Customize buffers) are actually subject to the grid Emacs aligns characters on. What you can do is telling Emacs to display an image of the SVG (vector) or XPM (bitmap) type. Since those aren't limited to be read in from a file, you can generate a string and turn it into an image. I've seen examples of both canvas-like ...


8

After much digging, there does not appear to be a built-in option to adjust this in Org or in general. The image system does not have any way to customize the default background, and org doesn't have a way to set the :background property. However, it does look like most images support the :background display property. I added this functionality to Org by ...


8

set option in your emacs init file: (setq org-image-actual-width nil) And add this property upon image link: #+NAME: fig:figure name #+CAPTION: figure name #+ATTR_ORG: :width 200/250/300/400/500/600 #+ATTR_LATEX: :width 2.0in #+ATTR_HTML: :width 200/250/300/400/500/600px [[file:./file.png]]


7

Since Emacs 26.1, the buffer can be scrolled by individual pixels instead of just lines which can be used to smoothly scroll over images using the mouse wheel. To achieve this I have used the following configuration: ;;; Scrolling. ;; Good speed and allow scrolling through large images (pixel-scroll). ;; Note: Scroll lags when point must be moved but ...


7

And again we have a use-case for image data not stored on harddisk. (The other two use-cases are base64 encoded images in org buffers and displaying previews of youtube videos.) Get org-yt and paste the following elisp code into your init-file. After evaluating your init-file you can use links analog to the example: [[imghttp://tn-home.de/Pic/tn-home.png]]...


6

As of Emacs 25.1 you can pass an argument to eww-reload to load from the cache rather than the network. I'm using the following: (defun my/eww-toggle-images () "Toggle whether images are loaded and reload the current page fro cache." (interactive) (setq-local shr-inhibit-images (not shr-inhibit-images)) (eww-reload t) (message "Images are now %s" ...


6

Solution I used the source code in lisp/image-mode.el to write this up. Calling this function in any image buffer will resize it to fit to width or height depending on the image and window height/width ratios. You do need these 2 things for this function to work: Your emacs needs to have been compiled with Imagemagick. By default libjpeg loader is used to ...


6

Imagemagick version not match. Change brew install command as below: brew install emacs --with-cocoa --with-gnutls --with-dbus --with-librsvg --with-imagemagick@6 --with-mailutils --devel Then run brew info emacs to check if magicmagick is fine! emacs: stable 25.1 (bottled), devel 25.2-rc2, HEAD GNU Emacs text editor https://www.gnu.org/software/emacs/ /...


5

Internally, org-toggle-inline-images calls org-display-inline-images to handle display of inline images. You can advise this function to turn off openwith-mode while it is doing its thing, and to turn it back on afterwards: (defadvice org-display-inline-images (around handle-openwith (&optional include-linked refresh beg end) activate ...


5

I used Byzanz to generate all my GIFs. I record with one screen to run the byzanz command, one for recording. Some examples are in my guide here.


5

I'm not so sure about replacing the source with an image, but you can have inline images as results to source blocks. If you add the startup option "inlineimages" to your buffer, any links in your buffer that point to local images it understands will be rendered. If you don't have a startup options block, it would just be a line at the top of your file ...


5

(setq org-image-actual-width 400) should do the job. The documentation of the variable (C-h v org-image-actual-width RET) gives more detail: org-image-actual-width is a variable defined in ‘org.el’. Its value is t Documentation: Should we use the actual width of images when inlining them? When set to t, always use the image width. When ...


4

I used Byzanz to record gifs Install it first, put this snippet into rr(record region) into your $PATH: #!/bin/bash # record screencast of a region into a gif using `byzanz-record` # Delay before starting DELAY=5 # Sound notification to let one know when recording is about to start (and ends) beep() { paplay /usr/share/sounds/KDE-Im-Irc-Event.ogg &...


4

I don't think that feature is present in org, but it's certainly possible to add it (defun my-remove-latex-fragment-overlay-at-point () (interactive) (let ((overlays (overlays-at (point)))) (mapc (lambda (ov) (when (eq (overlay-get ov 'org-overlay-type) 'org-latex-overlay) (setq org-latex-fragment-image-overlays ...


4

The problem lies in the self compiled libjpeg-9.dll. It is solved by downloading dll files from ezwinports as recommended: Emacs can also support some other image formats with appropriate libraries. These libraries are all available on the following sites: 1. http://sourceforge.net/projects/ezwinports/files/ -- leaner, more up-to-date builds, only for ...


4

Above feature is not supported by epresent. epresent-mode (derived from org-mode) doesn't export org files to html (or) any other format. It just changes how your org document is displayed. Some parts of the document such as TODO tags and property drawers are hidden, bigger fonts are used, and only one slide at a time is displayed.` Courtesy: @tmalsburg -...


4

While most issues with images in Emacs on Microsoft Windows are caused by missing shared libraries, this one is the fault of missing executables. image-dired requires the image-magick software which provides (among others) the convert and mogrify executables. Installing it and modifying PATH to allow you to launch these in a terminal should do the trick, ...


4

Apparently there was some kind of evil-mode conflict. The following line fixed everything: (evil-set-initial-state 'image-dired-thumbnail-mode 'emacs) I hope this helps someone :-)


4

The variable org-startup-with-inline-images can be set globally with the following in the .emacs or init.el file [the default value is nil] -- Non-nil means show inline images when loading a new Org file.: (setq org-startup-with-inline-images t) or, it can be set locally as described in the doc-string: This can also be configured on a per-file basis by ...


4

The variable org-format-latex-options (use M-x customize-variable org-format-latex-options RET to customize) is a property list with parameters controlling creation of images for LaTeX fragments. In particular, the :scale property controls image resolution. The default is 1.0; set to 2.0 to double image resolution, etc. To find an option like this one, try ...


4

Good question. You might try using something like this as the lighter: (concat " " (propertize " " 'display (create-image img-file))), where img-file is the name of your image file. (The first space char is just to separate this lighter from the previous one.) Well, I just tried, using this code, but it did not work for me. You might try fiddling a bit ...


4

Fist you should check whether imagemagick-support is compiled into emacs. If (image-type-available-p 'imagemagick) returns non-nil you are fine (thanks to deb0ch for clarification). Afterwards you can create images with type imagemagick and property :height and/or :width: (create-image "~/test.png" 'imagemagick nil :height 100) See the manual page on ...


Only top voted, non community-wiki answers of a minimum length are eligible