Hi all,
first of all, the script is working and it is doing what i want. But i have a "problem" with file size.
In details:
i'm inserting some images (logos..) in excel files with this code
$objDrawing = new PHPExcel_Worksheet_Drawing();
$objDrawing->setWorksheet($objWorksheet);
$objDrawing->setName("name");
$objDrawing->setDescription("Description");
$objDrawing->setPath('./path_to/image.png');
$objDrawing->setCoordinates('B1');
$objDrawing->setOffsetX(1);
$objDrawing->setOffsetY(5);
As i said before, the file is correct and images are in the right place.
The problem is that the file size is strange.
I mean:
the file with no logo is 54k
The file with logos as created by phpexcel is 1376k (lol)
If i open this file with excel and simply SAVE it, it becomes 338k (5 sheets and 4 images in every sheet, it can be correct..)
So, i'm wondering if i'm missing something in my code, because it's obvious that PHPexcel is doing something strange..
Thanks a lot
bye