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): $ ...


18

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 ...


16

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 ...


15

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 #+ATTR_LATEX: :width 2.0in #+ATTR_HTML: :width 200 [[file:./file.png]] The width value 200 and 2.0in can be any inch number value if you want.


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). ...


13

(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 ...


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 ...


9

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 ...


9

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 ...


9

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]]...


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

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/ /...


7

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" ...


7

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 ...


7

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 ...


6

To toggle images, do either: C-c C-x C-v or M-x org-toggle-inline-images


6

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 ...


6

In your step 2, (image-type-available-p 'imagemagick) should return t. nil is for unavailable. Perhaps the reason you get nil is the paths from macports install of imagemagick is not being picked up by the brew install of emacs. Have you noticed any compile errors to that effect? In any case, adjust the path to imagemagick manually or install it from ...


5

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, ...


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

Create the image with an:ascent property of value center. Advising org-display-inline-images might be a way of doing this in org-mode, though it will apply to all images. (defadvice org-display-inline-images (around center-images activate) (let ((create-image-orig (symbol-function 'create-image))) (cl-letf (((symbol-function 'create-image) ...


5

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 :-)


5

As far as I can tell *eww* buffers store image data in the display text property. So, to save an image we need to get this property and save it to a file. Here is a sketch of a solution. (defun my-eww-save-image (filename) "Save an image opened in an *eww* buffer to a file." (interactive "G") (let ((image (get-text-property (point-min) 'display))) ...


5

The function org-toggle-inline-images (bound to C-c C-x C-v) will toggle (and thus refresh) the display of linked images.


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 ...


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