Forum


Replies: 3   Views: 2867
How do i scale an image to a given height?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 07-08-2017 - 15:58

Hello,

If you set a height value but not a width value (or vice versa), phpdocx calculates the width from the aspect ratio using the PHP getimagesize function.

Regards.