Categories > OpenTBS with DOCX >

Manage image blocks

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: SP
Date: 2013-03-05
Time: 15:43

Manage image blocks

Hi

I have 2 image blocks in my docx file.
How can i dynamically pass image paths and replace images in file?
how does TBS recognizes which image block needs to be changed by which picture.
Would you please explain.


Thank you
By: Skrol29
Date: 2013-03-06
Time: 22:53

Re: Manage image blocks

Hi SP,

In OpenTBS < 1.8.0 you have to place a dynamic TBS field after the image.
OpenTBS merges the field having parameter "ope=changpic" with the first picture found before the field.

Since OpenTBS 1.8.0 (still in beta, but stable) your place use parameter "tagpos" to specify if the TBS is before, inside or after the picture.
There is also a command OPENTBS_CHANGE_PICTURE which enables to change a picture without TBS field in the template.