[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: feature request: easy embedding of images
From: |
Russell Adams |
Subject: |
Re: feature request: easy embedding of images |
Date: |
Mon, 20 Feb 2023 20:20:44 +0100 |
On Sat, Feb 18, 2023 at 04:22:33PM -0800, Alexis Gallagher wrote:
> Hello, my fellow org-mode lovers,
>
> This is a feature request — or failing that, a request for advice on
> a settings configuration which could produce this functionality now.
Have you looked at org-attach-screenshot?
https://github.com/dfeich/org-screenshot
It uses org-attach and calls out to take a screenshot.
I do the same with some local function's I wrote a while ago. It works
very well for me. I run M-x my/org-screenshot, and after 3 seconds it
will use Imagemagick's "import" command to allow me to select a region
to screenshot and saves it to a filename I prepared.
I do this daily, many times each day.
> I wish org-mode had the ability to attach images to notes, display
> them inline, and have that work well. By “work well” I mean a few
> specific things:
>
> • the image is automatically resized to maintain aspect ratio and
> • fit horizontally with a civilized margin, so that I can resize
> • my emacs window without the image disappearing or swamping the
> • other content.
This is Emacs, not Org. Perhaps someone knows how to adjust that.
> • you can still scroll the window one line height unit at a time,
> • without the entire image being scrolled as if it were one giant
> • line, breaking scrolling, as seems to happen on my emacs
> • (version 28.x on Linux)
Mine jumps too, but again that's Emacs, not Org.
> • drag and drop, so I can add the image by dragging it in, for
> • instance from a screenshot tool or from an image on a web page.
I can't answer that. Drag and drop functions depend on your
platform. Does anything else in Emacs use drag and drop?
> • sensible defaults for storing the images bundled with notes and
> • keeping the two associated, so that I don't subsequently live in
> • fear of ever moving my org files
I do save all of mine to the same directory as my org file in
.org/Filename.org.screenshotYYYYMMDDHHMMSS.png. It means I can easily
know what files below to my org document.
> Why is this valuable, to me at least? I use org to take notes all
> day, during meetings, on reading matter, in the development of my
> own thoughts. Embedding images would let me collect every kind of
> resource I can't reproduce by typing or copy and pasting text —
> photos of slides during presentations, photos of whiteboard, key
> snippets from websites, handwritten notes and equations, etc..
Of course it's valuable, and already implemented. I think you're
asking more about refining how you use it.
------------------------------------------------------------------
Russell Adams RLAdams@AdamsInfoServ.com
https://www.adamsinfoserv.com/