Re: [O] Generate and display image

2014-03-24 Thread Eric S Fraga
Andrey Tykhonov  writes:

[...]

> 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]]

If the : is part of the output you get, this means that the line is not
to be processed by org and hence the exported output is meant to be as
you describe.  Maybe you need to specify the type of results you expect
from your src block?  E.g. ":results file" or some variation thereof?
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org 
release_8.2.5h-831-gcb9172.dirty



Re: [O] Generate and display image

2014-03-21 Thread John Kitchin
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
>
>


[O] Generate and display image

2014-03-21 Thread Andrey Tykhonov

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