Insert local image
insertImage(int $row, int $column, string $localImagePath[, double $widthScale, double $heightScale])
cell row
cell column
picture path
Scale the image X axis; the default is 1, maintaining the original width of the image; when the value is 0.5, the image width is 1/2 of the original image;
Scale the image axis; the default is 1, keeping the original height of the image; when the value is 0.5, the image height is 1/2 of the original image;
$excel = new \Vtiful\Kernel\Excel($config);
$freeFile = $excel->fileName("free.xlsx");
$freeFile->insertImage(5, 0, '/vagrant/ASW-G-66.jpg');
$freeFile->output();
Last modified 4yr ago