how to post images?

169 views
Skip to first unread message

Aron Griffis

unread,
May 8, 2012, 9:33:48 AM5/8/12
to tinker...@googlegroups.com
Hi all,

I'm trying out tinkerer for a blog. There doesn't seem to be any mention in the documentation about images. How do you include images in a blog post?

Thanks,
Aron

Vlad Riscutia

unread,
May 8, 2012, 11:51:02 AM5/8/12
to tinker...@googlegroups.com
Adding images is upstream feature implemented in Sphinx:  http://sphinx.pocoo.org/rest.html?highlight=images#images. Tinkerer documentation only covers additional directives implemented in Tinkerer itself.

Thank you,
Vlad

Augustine Dunn

unread,
Apr 9, 2013, 12:06:48 PM4/9/13
to tinker...@googlegroups.com
This is not strictly true.

Sphinx allows absolute paths.  Tinkerer does not seem to.  It seems to require that the images be relative paths.  Having something in the tinkerer docs would have saved me a LOT of frustration and avoided my slightly lowered impression of the usefulness of tinkerer over more established frameworks that I chose to ignore for tinkerer.  ESPECIALLY when your response was not helpful but simply: RTFM (sphinx) when that manual is NOT the same as how tinkerer ACTUALLY works...

Augustine Dunn

unread,
Apr 9, 2013, 12:12:18 PM4/9/13
to tinker...@googlegroups.com
I hope that you have figured this out but since you didnt get a lot of help from this thread: let me post this for others (like me) that had to waste time "tinkering" about to reverse engineer why the sphinx method is not completely useable.

I solved this by placing my image directory inside the post directory and using relative paths to the images.

.. image:: Exploring_PTCI_files/Exploring_PTCI_fig_00.png

where the directory looks like this:

/home/user/path/to/blog/YEAR/MONTH/DAY/

so the images live here:

/home/user/path/to/blog/YEAR/MONTH/DAY/Exploring_PTCI_files/

Gus

Christian Jann

unread,
Apr 9, 2013, 1:35:58 PM4/9/13
to tinker...@googlegroups.com
On Tuesday 09 April 2013 09:12:18 Augustine Dunn wrote:
> you have figured this out but since you didnt get a lot of help
> from this thread: let me post this for others (like me) that had to waste
> time "tinkering" about to reverse engineer why the sphinx method is not
> completely useable.
>
> I solved this by placing my image directory inside the post directory and
> using relative paths to the images.
>
> .. image:: Exploring_PTCI_files/Exploring_PTCI_fig_00.png

I'm doing it for example like this:

.. figure:: /_images/olinuxino/olinuxino_breadboard_small.jpeg
:width: 500px
:alt: Raspberry Pi und OLinuXino-Micro
:align: center
:target: ../../../_images_big/olinuxino/olinuxino_breadboard_big.jpeg

Versuchsaufbau OLinuXino, Steckbrett und USB-Serial-Wandler


[chris@thinkpad tinkerer.git]$ tree _copy/_images_big/olinuxino/
_copy/_images_big/olinuxino/
├── olinuxino_and_rapberry_pi-big.jpeg
├── olinuxino_breadboard_big.jpeg
├── olinuxino_leds_umts_1.jpg
├── olinuxino-micro-front-big.jpeg
├── OLinuXino_Micro_side.jpeg
└── olinuxino-micro-wifi.jpeg

0 directories, 6 files
[chris@thinkpad tinkerer.git]$ tree _images/olinuxino/
_images/olinuxino/
├── control_gpio_pins_over_ssh.png
├── git-cola.png
├── gitk.png
├── login_successful.png
├── menuconfig.png
├── minicom_olinuxino.png
├── olinuxino_and_rapberry_pi-small.jpeg
├── olinuxino_breadboard_small.jpeg
├── olinuxino_conf_1.png
├── olinuxino_conf_2.png
├── olinuxino_conf_3.png
├── olinuxino-gtkterm.png
├── olinuxino_leds_umts_1_small.jpg
├── olinuxino-menuconfig.png
├── olinuxino-menuconfig_ralink.png
├── olinuxino-micro-front-small.jpeg
├── OLinuXino_Micro_side_small.jpeg
├── olinuxino-micro-wifi_small.jpeg
├── olinuxino.pagekite.me.png
├── olinuxino_ping_google.png
├── olinuxino_solder_bridge_1.png
├── olinuxino_solder_bridge_2.png
├── olinuxino-watterott-packet.jpeg
├── pagekite_hello_world.png
├── Screenshot_Android_olinuxino.pagekite.me.png
├── tp-link.jpg
├── WL0084B.png
└── xconfig.png

0 directories, 28 files
[chris@thinkpad tinkerer.git]$


Vlad Riscutia

unread,
Apr 9, 2013, 11:36:18 PM4/9/13
to tinker...@googlegroups.com
Sorry if my reply offended you, I didn't even realize Tinkerer does not support absolute path in images. 

I think the way the question was formulated - "how do you include images in a blog post", made me reply with link to Sphinx doc as I didn't do anything special around the image directive (the fact I am link patching images is another story :)). Maybe "why can't I insert images with absolute path in Tinkerer when I can do so in Sphinx?" might have gotten a different reply. BTW, if this is a problem, please open an issue for it and I will take a look. If this happens due to link patching, I can at least update docs with an explanation if it cannot be fixed.

Thank you,
Vlad




--
You received this message because you are subscribed to the Google Groups "tinkerer-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tinkerer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages