Extracting pictures/images within an Excel file (xls) using PHP

前端 未结 3 1513
误落风尘
误落风尘 2021-01-05 15:13

I have a spreadsheet that I would like to import using PHP. I can import the cell data using PHPExcel, but can\'t figure out how to use images from within the spreadsheet.<

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-05 16:00

    You can do the following :

    $im = {excel data} 
    header("Content-type: image/jpeg"); // or whatever
    $image = imagejpeg($im, NULL, 100);

提交回复
热议问题