Forum


Replies: 1   Views: 4596
Rotate images
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 dwilliams  · 10-12-2015 - 21:01

Is there a function to rotate an image before placing it in a Word document? I'd like to create a flyer with some images that are at a 15 degree rotation.

Posted by admin  · 11-12-2015 - 08:38

Hello,

We recommend you to use a PHP library such as GD or ImageMagick to transform the image and then use phpdocx to add it into the document.

For example GD can rotate images using this function: http://php.net/manual/en/function.imagerotate.php

Regards.