I have the following code to insert an excel image, which works correctly:
$objDrawing = new PHPExcel_Worksheet_Drawing();
$objDrawing->setName('imgNotice');
$objDrawing->setDescription('Noticia');
$img = '../images/new.jpg'; // Provide path to your logo file
$objDrawing->setPath($img);
$objDrawing->setOffsetX(28); // setOffsetX works properly
$objDrawing->setOffsetY(300); //setOffsetY has no effect
$objDrawing->setCoordinates('A1');
$objDrawing->setHeight(150); // logo height
$objDrawing->setWorksheet($objPHPExcel->setActiveSheetIndex($pos+1));
However I have a database that has a table with some images whose routes are from the internet, for example http://cdn.sstatic.net/Sites/beta/img/404.png
but for phpExcel it does not work, does anyone know if there is any way? or do I necessarily need the image in the project?
And yes, I already tried:
$img = "http://cdn.sstatic.net/Sites/beta/img/404.png";