emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@adamsinfoserv.com>
To: emacs-orgmode@gnu.org
Subject: Re: feature request: easy embedding of images
Date: Mon, 20 Feb 2023 20:20:44 +0100	[thread overview]
Message-ID: <Y/PIDF015T9ofetf@tahm> (raw)
In-Reply-To: <C547E741-E8E2-4E48-8B71-B8B83C1E9E21@gmail.com>

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/


  reply	other threads:[~2023-02-20 19:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-19  0:22 feature request: easy embedding of images Alexis Gallagher
2023-02-20 19:20 ` Russell Adams [this message]
2023-02-20 21:24   ` Jude DaShiell
2023-02-21 12:21     ` Daniel Fleischer
2023-02-20 19:28 ` Daniel Fleischer
2023-03-23 14:34 ` [RFC] Limit inline image width by default (was: feature request: easy embedding of images) Ihor Radchenko
2023-03-23 14:57   ` Ruijie Yu via General discussions about Org-mode.
2023-03-23 15:25   ` Christopher M. Miles
2023-04-05 12:48   ` Rudolf Adamkovič
2023-04-09  9:00   ` Ihor Radchenko
2023-03-24 12:49 ` feature request: easy embedding of images Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y/PIDF015T9ofetf@tahm \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).