Categories > OpenTBS with DOCX >

OpenTBS image width and height

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Mike OConnell
Date: 2011-06-24
Time: 01:42

OpenTBS image width and height

Is there a way to specify width and height for an image in a Word template? I can successfully replace an image with:

b.number;ope=changepic;from=[val];default=current]

but if the new image has different dimensions than the old one, it gets distorted. Thanks!
By: Skrol29
Date: 2011-06-24
Time: 23:15

Re: OpenTBS image width and height

Hi Mike,

There is no way for now to change the image size in the document.
Ms Word do need an explicit size for the shape that embeds the image.
And OpenTBS hasn't the feature for changing this size for now.

It would be possible to add such a feature but this will require an extension fore reading an image size, such as the GD extension which is very often installed with PHP.
By: Skrol29
Date: 2011-07-22
Time: 04:10

Re: OpenTBS image width and height

This feature will be available in OpenTBS version 1.7.0 which is currently in stable beta version.

It will be possible to adjust picture size for both Ms Word and OpenOffice pictures.
By: Abel Magana
Date: 2013-11-19
Time: 04:59

Re: OpenTBS image width and height

->Skrol29
How it is possible
By: Skrol29
Date: 2013-11-21
Time: 00:44

Re: OpenTBS image width and height

By: Arnold
Date: 2013-12-10
Time: 15:31

Re: OpenTBS image width and height

i'm using OpenTBS 3.8.2 and have GD for php5 installed and enabled.
but images are not adjusted even when using the adjust=100%; parameter.

can anyone help me? full string inside image description:
[data.image;ope=changepic;tagpos=inside;adjust=100%;default=current;]
By: Arnold
Date: 2013-12-12
Time: 16:31

Re: OpenTBS image width and height

update with solution
when putting the merge field below the image, so not inside the description!
the adjust works perfect.
By: Skrol29
Date: 2013-12-13
Time: 03:18

Re: OpenTBS image width and height

Ok, so it's the 2d bug with parameter "adjust" in a DOCX.
http://www.tinybutstrong.com/forum.php?thr=3259