Someone, I donβt know if he himself asked a similar question on the PHPExcel board ... that I have not yet received an answer to the question.
$objPHPExcel->getActiveSheet()->getDrawingCollection()
will return an ArrayObject of all image objects on the active sheet.
These objects will be either PHPExcel_Worksheet_Drawing objects or PHPExcel_Worksheet_MemoryDrawing objects: you can define using is_a () . Then you can use the methods corresponding to this class (as described in the API), either to read image data from a file (for PHPExcel_Worksheet_Drawing objects) or directly from the PHPExcel_Worksheet_MemoryDrawing object. The getName () and getDescription () methods can be used to retrieve the appropriate values ββfor the image object.
Note that it is also possible to have image objects associated with print headers:
$objPHPExcel->getActiveSheet()->getHeaderFooter()->getImages()
can be used to extract images from the header / footer. This is an array of PHPExcel_Worksheet_HeaderFooterDrawing objects. All PHPExcel_Worksheet_Drawing methods can be used to extract the image file from these objects.
EDIT
Based on your code in a modified question:
$drawing->getName();
should provide you with what you need
source share