From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Generate and display image Date: Fri, 21 Mar 2014 07:44:14 -0400 Message-ID: References: <87zjkj6awm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d856db5139a04f51c67a9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQxs3-0008Tw-Ja for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 07:44:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQxs2-0004vV-Cy for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 07:44:19 -0400 Received: from mail-pd0-x233.google.com ([2607:f8b0:400e:c02::233]:48475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQxs2-0004v1-5T for emacs-orgmode@gnu.org; Fri, 21 Mar 2014 07:44:18 -0400 Received: by mail-pd0-f179.google.com with SMTP id w10so2223524pde.24 for ; Fri, 21 Mar 2014 04:44:16 -0700 (PDT) In-Reply-To: <87zjkj6awm.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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andrey Tykhonov Cc: "emacs-orgmode@gnu.org" --047d7b5d856db5139a04f51c67a9 Content-Type: text/plain; charset=ISO-8859-1 i find you have to toggle the inline images (org-toggle-inline-images) two times to do that. once to turn the old images off, and once to turn them all back on. C-c C-x C-v runs that command for me. John ----------------------------------- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Fri, Mar 21, 2014 at 7:36 AM, Andrey Tykhonov wrote: > > Hi all! > > What I want to do is to generate image (better to say a path to an image) > in the org-file and then see it posted in my blog. > > For example, I have such block: > > #+BEGIN_SRC text2image :exports results > Foo > Bar > Baz > #+END_SRC > > There is text2image command line utility which takes a text and converts it > to the image, then returns a path to the image. > > When I execute that block by means of `org-babel-execute-src-block' that > block executes correctly and returns a path: > > #+RESULTS: > : [[/home/demi/images/2014-03-21-024756.png]] > > The issue is that that after execution of > `org2blog/wp-post-buffer-and-publish' I'm expecting to see in the blog post > the image but I see this path literally (instead of image): > > [[/home/demi/images/2014-03-21-024756.png]] > > > How to fix that issue? Please help. > > I tried to change text2image program to return a path with a prefix "file:" > and "file:///" but that didn't help. > > > > Andrey > > --047d7b5d856db5139a04f51c67a9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
i find you have to toggle the inline images (org-togg= le-inline-images) two times to do that. once to turn the old images off, an= d once to turn them all back on.

C-c C-x C-v runs that comman= d for me.

John

-------= ----------------------------
John Kitchin
Associate Professor
Dohe= rty Hall A207F
Department of Chemical Engineering
Carnegie Mellon Uni= versity
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu

<= /div>

On Fri, Mar 21, 2014 at 7:36 AM, Andrey = Tykhonov <atykhonov@gmail.com> wrote:

Hi all!

What I want to do is to generate image (better to say a path to an image) in the org-file and then see it posted in my blog.

For example, I have such block:

#+BEGIN_SRC text2image :exports results
Foo
Bar
Baz
#+END_SRC

There is text2image command line utility which takes a text and converts it=
to the image, then returns a path to the image.

When I execute that block by means of `org-babel-execute-src-block' tha= t
block executes correctly and returns a path:

#+RESULTS:
: [[/home/demi/images/2014-03-21-024756.png]]

The issue is that that after execution of
`org2blog/wp-post-buffer-and-publish' I'm expecting to see in the b= log post
the image but I see this path literally (instead of image):

[[/home/demi/images/2014-03-21-024756.png]]


How to fix that issue? Please help.

I tried to change text2image program to return a path with a prefix "f= ile:"
and "file:///" but that didn't help.



Andrey


--047d7b5d856db5139a04f51c67a9--