From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WKVTGF3I82OqAgEAbAwnHQ (envelope-from ) for ; Mon, 20 Feb 2023 20:22:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oFhJGF3I82PcYQEA9RJhRA (envelope-from ) for ; Mon, 20 Feb 2023 20:22:05 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 078AF2DFAA for ; Mon, 20 Feb 2023 20:22:05 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUBid-000651-Pu; Mon, 20 Feb 2023 14:20:59 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUBiZ-00064K-V2 for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 14:20:56 -0500 Received: from se13.route25.eu ([2a00:f10:121:a00:1c00:efff:fe00:1854]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUBiX-0003w1-AO for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 14:20:55 -0500 Date: Mon, 20 Feb 2023 20:20:44 +0100 From: Russell Adams To: emacs-orgmode@gnu.org Subject: Re: feature request: easy embedding of images Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Originating-IP: 185.87.184.57 X-SpamExperts-Domain: out.pcextreme.nl X-SpamExperts-Username: 185.87.184.57 X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.20) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9xBhhs+AKw1htoanmN3bkHPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5xiExUbNqvmdkLSOzf1W2Y3z8hkeSqZT0W1YMl0fRDa99cV PSoHm0W/3adFfiYl2nsSD1S70+0JNUnkxqdlLoRu/T4GcPvCLvSpAEEGy7kYxsD3QRUnhlexiXT3 xXuXeIhevFP+kOiMW3ZJfjMJYMEj+gaXrHkgRC7/tI3CjXmVyosx5NBrAjIOIy1Rum9a4NTHh0cQ L0Ci0sRm4Wh/iZxmZw2OUofLfB7s8QYvnn3mfsztdQUSqk/AeLi65+4s/LrywTM2yEHEhvC9Izsy /NENTMQ3Kg3hL2oXz5A5E5R/dS4GkJ5hfB+qWugfDEytZYoACfRtBjLzEjgIZNLWhI/Mshn3T8Ox KyIrAogwLlirll+u0Sc2bgjgy6NE5WzPnrJ1fJyKyenPq733oZ8bAyJmHQrtppYmxMktfUX7kfB+ UdezYqxGMqsKjARq8PBC4qgxMmglBiLsgrvXOb7qEGUwgxHIagHkgJmlqPNWnLI1oovhSJcbnX/H QqL/X9rNCJCc6iESJvKm1NV8gkr+Wu8ScVDXinOVyuIpITQ9z3M3DO7OWuqF1+w/pTOKTb9S094O 5ldb4EwDPpdfe0QRwC0u4802Y0/VuXyuZGgVvL+/QIRqjUAIRxM6RgfXPeUeMOo5y9phFQNqs3ow 7qoYE68Mb9qUxf0isHFqyjYDGBkd2y32EoSnB0KQ6B3xt8UP9IrQLp/miaSDdXxJiAZb1EzkDw0J UO/SMw1JqaZJdGBLjyJ96D3ZRvOYhHnLEs7p1HrHeqPAMus+4sT7DMwJ3S6pctgzcDoFd+96Xw4Q UNtTncaOn0+WJUUa3BJTNKQ18zDN24asJdvYl1Y19r9fXlcpDneFtYF4v0IUhnwA7zUt/ygkKg3C UVSz51jczPLYUPONvxgu6jFRoaLzVpT+CP36s6RbLfB6BI3XJUys1lM3IMGhDC7qKEsgLqHNXMxe jlB49DjiWowOnKvI8aF4jzAuZNIARVagEMhjyGL5llQ69151eclHOr67cHgLgz4Hvn0= X-Report-Abuse-To: spam@semaster01.route25.eu Received-SPF: pass client-ip=2a00:f10:121:a00:1c00:efff:fe00:1854; envelope-from=rladams@adamsinfoserv.com; helo=se13.route25.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676920925; a=rsa-sha256; cv=none; b=KxsJdW23JrjTQ+VOky81VE6qDZhjkgQfjko1Gd6h8xQPqMJka/6Me5/9tO+3Dr7M0GhA/Q Uu9O3YBQmQW01IqmN+oO0nPudQ5+6hQvfL5NdwHFAVI5B3zkRFgrBnSuP3F4FUxoKKsK7L fV3IEGns+GBDtw31ONy8SMwFw7BtUsZatzdEiywjluLJi9ZeGtohUTJqLISdtEh9fFg2pM q7rMPfFgQgEcbGITx09fCV8sMh8ndCwHbmMEGyW/tY4hJIqbEsNcINudR8XoDbWh5i+9H9 0MBet5SQt4iyPYBTXyfAbhfkUafZRUpd4cRvyB3UPp+hdYqBNsWR2TWk2Y/0lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676920925; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=jAZV+vHDULDl+uA8uaYY2+EDnKUz2/LFwAFUsx6lG5s=; b=Fn+OG3uCJIFUIiVYiQ/21aS5bB4byO3HutiTfVSecZT7ZrNXMYBZob10yHCf0N8s4TJzBc vz3QC0e8RoSUCo9nxgX+GNio8sXXEE6UAiiDYU78oYT+1e+TfUAvtuLF0b8IaCG5P3GSVA r+fGn3nZ4Wb4ofXTWhOSPUaKy03+AQjtOAe1w6ELTtHzC7+WCBJwhjPQ75CZLw/47rYwyl h6hvsD+ZD3YE4qN55MMao5b7AO5c0QzXlgbmR1dc3tYYbhWZEHXcdHKwU7sIRH5VK0vcnt QORdDtgzmKiCAzO89O1cYTHYvmGYTqV0rnRwRSH0MZvNqJ04SDUI1Xd2eQXDEg== X-Spam-Score: -0.95 X-Migadu-Queue-Id: 078AF2DFAA X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Spam-Score: -0.95 X-TUID: kW38f7gb0QaL 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/