php - How to resize the image for get the image from db in PHPExcel? -


$objdrawing = new phpexcel_worksheet_drawing(); $objdrawing->setname('image name'); $objdrawing->setdescription('sample'); $objdrawing->setpath('c:/users/downloads/'.$image); $objdrawing->setheight(100); $objdrawing->setwidth(100);      $objdrawing->setresizeproportional(false); $objdrawing->setcoordinates('a1');    $objdrawing->setoffsetx(30);              $objdrawing->setworksheet($objphpexcel->getactivesheet());  

using above code image database , try set image in particular image box. image box contains (a1:d18) merge excel. can resize image set 100 width , height these size variation image size. how can fix these size image.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -