Setting image using PHPExcel it width is changed

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 36
Joined: Sun Mar 30, 2014 4:45 am

Thu Jul 31, 2014 5:43 am

Using PHPExcel library I show image in excel sheet with code like :

Code: Select all

  $objDrawingPType = new PHPExcel_Worksheet_Drawing();
  $objDrawingPType->setWorksheet( $this->ExcelActiveSheetObj );
  $cell_coords = $this->int_coordsto_chars( $image_row, $image_col );

  $objDrawingPType->setCoordinates( $cell_coords );
It works but the image it resized by the width, say if this column is autosized then width of image is bigger then it was in original image. I want this image to keep its size as it is.

Post Reply