How to crop image on PHPPresentation

Home / Uncategorized / How to crop image on PHPPresentation

Question:
This is my code and I can’t find any documentation:$shape2 = $currentSlide->createDrawingShape();
$shape2->setName("IMAGE_NAME")
->setDescription("IMAGE_DESCRIPTION")
->setPath("IMAGE_PATH")
->setWidth(300)
->setOffsetX(110)
->setOffsetY(120);


Answer:
Just use php function for this and then put the filepath of the cropped image to PHPPresentation http://php.net/manual/en/function.imagecrop.php
Read more

Leave a Reply

Your email address will not be published. Required fields are marked *