Categories > OpenTBS with ODT >

Changepic adjust doesn't make a difference

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Getterac7
Date: 2016-04-13
Time: 18:32

Changepic adjust doesn't make a difference

Hello!

I am trying to merge an image with
[onshow.myimg;ope=changepic;tagpos=after;adjust]
and it does merge, but the adjust parameter makes no difference.

adjust=inside
adjust=100%
adjust=samewidth
adjust=sameheight

...they all have the same result: the image is stretched to fill the template image frame bounds.
I had expected samewidth to scale the image to fit the width of the template frame (keeping aspect ratio), but that is not the case.

Is there some way to keep the aspect ratio of the original image?

Thanks!
By: Getterac7
Date: 2016-04-13
Time: 20:47

Re: Changepic adjust doesn't make a difference

I forgot to mention, I'm using PHP v5.6.20, TBS v3.10.1, and OpenTBS v1.9.6. I am also using ODT files.
By: Skrol29
Date: 2016-04-15
Time: 00:51

Re: Changepic adjust doesn't make a difference

Hi,

I cannot reproduce your problem.
Which software version did you used for creating the ODT template ? LibreOffice, OpenOffice, ? And which version ?

Regards,
By: Getterac7
Date: 2016-04-15
Time: 23:14

Re: Changepic adjust doesn't make a difference

Hi Skrol29,

I am using CentOS 7 (headless) with libreoffice 4.3.7.2-5.el7_2.1 to do the merge.
Here's the template file: https://www.dropbox.com/s/pom910eefy3x64k/test.odt?dl=0