From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: Displaying remote images Date: Thu, 28 Nov 2019 16:50:29 -0500 Message-ID: References: <8736e8sza3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b9ae6305986f1a5d" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58631) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iaRgc-0006NH-0W for emacs-orgmode@gnu.org; Thu, 28 Nov 2019 16:50:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iaRgU-00024M-BS for emacs-orgmode@gnu.org; Thu, 28 Nov 2019 16:50:49 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:52048) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iaRgU-0001iO-3k for emacs-orgmode@gnu.org; Thu, 28 Nov 2019 16:50:46 -0500 Received: by mail-wm1-x333.google.com with SMTP id g206so12281195wme.1 for ; Thu, 28 Nov 2019 13:50:42 -0800 (PST) In-Reply-To: <8736e8sza3.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Jack Kamm Cc: emacs-orgmode --000000000000b9ae6305986f1a5d Content-Type: text/plain; charset="UTF-8" * Idea 1 Create a "cron job" or "at job" that does updates up to the minute and make those images current...and local--and the cron job can auto-delete the temp file later or back it up * Idea 2 Make an elisp .el program that gets loaded and run whenever you open the .org file with the remote image...and that code updates the images locally * Idea 3 Use the patch you reference and create your own .el program that gets loaded and run when you want it--a cursory examination of the patch reveals that it depends on ImageMagick which is great software that everyone should use; but, it's a dependency that is NOT emacs software and so it makes sense that it was never put into the main OrgMode software tree P.S. I created code and methods to put and run animated .gif's into OrgMode buffers and run them, it was amusing; but, it wasted a lot of ram and slowed everything down Emacs and OrgMode do many great things; but, the focus has always been, at it's core, the most powerful editor and stateless organizing software--it's not a browser of dynamically generated Internet pics--Emacs W3 was created to do that, and it hasn't been updated in years--suggest you look at Emacs W3 browser code and/or w3m browser or even UZBL browser--all of which were made into good extensions for doing such things--UZBL by the way has been made to operate fully encapsulated in an emacs buffer On Thu, Nov 28, 2019 at 12:36 PM Jack Kamm wrote: > When trying to display a remote image file in an org-mode buffer, I > only see a blank square instead of the image. > > This is a longstanding problem, and there was an attempt to patch it in > 2014, but the patch was never accepted: > https://lists.gnu.org/archive/html/emacs-orgmode/2014-11/msg00583.html > > The fault might be with image.el rather than with org-mode itself -- > for example, when I execute the following elisp, I get the same blank > box: > > (insert-image (create-image "/scp:pi:/home/pi/foo.png")) > > However, if I open the remote file in its own buffer using image-mode, > I can correctly view the image. > > Anyways, I would like to try and fix this, but not sure whether we > should pursue a fix in org.el (as in the linked patch), or in > image.el, or elsewhere. > > Any advice on how to proceed here? > > --000000000000b9ae6305986f1a5d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
* Idea 1
Create a "cron job" or "at job= " that does updates up to the minute and make those images current...a= nd local--and the cron job can auto-delete the temp file later or back it u= p

* Idea 2
Make an elisp .el program tha= t gets loaded and run whenever=C2=A0you open the .org file with the remote = image...and that code updates the images locally

*= Idea 3
Use the patch you reference and create your own .el progr= am that gets loaded and run when you want it--a cursory examination of the = patch=C2=A0 reveals that it depends on ImageMagick which is great software = that everyone should use; but, it's a dependency that is NOT emacs soft= ware and so it makes sense that it was never put into the main OrgMode soft= ware tree

P.S. I created code and methods to put a= nd run animated .gif's into OrgMode buffers and run them, it was amusin= g; but, it wasted a lot of ram and slowed everything down

Emacs and OrgMode do many great things; but, the focus has always b= een, at it's core, the most powerful editor and stateless organizing so= ftware--it's not a browser of dynamically generated Internet pics--Emac= s W3 was created to do that, and it hasn't been updated in years--sugge= st you look at Emacs W3 browser code and/or w3m browser or even UZBL browse= r--all of which were made into good extensions for doing such things--UZBL = by the way has been made to operate fully encapsulated in an emacs buffer= =C2=A0





On = Thu, Nov 28, 2019 at 12:36 PM Jack Kamm <jackkamm@gmail.com> wrote:
When trying to display a remote image file in an o= rg-mode buffer, I
only see a blank square instead of the image.

This is a longstanding problem, and there was an attempt to patch it in
2014, but the patch was never accepted:
https://lists.gnu.org/archive/= html/emacs-orgmode/2014-11/msg00583.html

The fault might be with image.el rather than with org-mode itself --
for example, when I execute the following elisp, I get the same blank
box:

(insert-image (create-image "/scp:pi:/home/pi/foo.png"))

However, if I open the remote file in its own buffer using image-mode,
I can correctly view the image.

Anyways, I would like to try and fix this, but not sure whether we
should pursue a fix in org.el (as in the linked patch), or in
image.el, or elsewhere.

Any advice on how to proceed here?

--000000000000b9ae6305986f1a5d--