title: PHPSpreadsheet - How do i place a image from link into my excel file?
body: <p>I would like to place a image in cell a1 from my excel file.</p>
  
  <p>I tryed different things from phpspreadsheet website but all without succes.
  Like this example from them that does'nt work.:</p>
  
  <pre><code>$drawing = new \PhpOffice\PhpSpreadsheet\Worksheet\Drawing();
  $drawing-&gt;setName('Paid');
  $drawing-&gt;setDescription('Paid');
  $drawing-&gt;setPath('https://pngimage.net/wp-content/uploads/2018/06/rfhnbyrb-png-6.png');
  $drawing-&gt;setCoordinates('B15');
  $drawing-&gt;setOffsetX(110);
  $drawing-&gt;setRotation(25);
  $drawing-&gt;getShadow()-&gt;setVisible(true);
  $drawing-&gt;getShadow()-&gt;setDirection(45);
  </code></pre>
  
  <p>If i create a black bar with text inside it it works with this code.:</p>
  
  <pre><code>$gdImage = @imagecreatetruecolor(2000, 20) or die('Cannot Initialize new GD image stream');
  $textColor = imagecolorallocate($gdImage, 255, 255, 5);
  imagestring($gdImage, 1, 5, 5, date("F Y"), $textColor);
  
  //  Add the In-Memory image to a worksheet
  $drawing = new \PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing();
  $drawing-&gt;setName('In-Memory image 1');
  $drawing-&gt;setDescription('In-Memory image 1');
  $drawing-&gt;setCoordinates('A1');
  $drawing-&gt;setImageResource($gdImage);
  $drawing-&gt;setRenderingFunction(\PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing::RENDERING_JPEG);
  $drawing-&gt;setMimeType(\PhpOffice\PhpSpreadsheet\Worksheet\MemoryDrawing::MIMETYPE_DEFAULT);
  $drawing-&gt;setHeight(36);
  $drawing-&gt;setWorksheet($spreadsheet-&gt;getActiveSheet());
  </code></pre>
  
  <p>what i try i don't get a image in my excel file, please who wants to help me.</p>