title: phpspreadsheet: How to add some margin between a cell and the image?
body: <p>When inserting an image into a cell, it gets inserted to the very left of the cell, I'd like to add some margin, how to do so?</p>
  
  <p>I tried many things, I'm not the first to ask this, it's being asked since the days of PHPexcel and there's no answer, I tried every solution to no avail, like this one, which should center whatever is in the cell, it centers text but not images</p>
  
  <pre><code>function center(){
  $styleArray = [
      'alignment' =&gt; [
          'vertical' =&gt; \PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER,
          'horizontal' =&gt; \PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER,
      ],
  ];
  return $styleArray;
  }
  $sheet-&gt;getStyle('B2')-&gt;applyFromArray(center()));
  </code></pre>
  
  <p>I'm not necessarily trying to center it, whatever works, all I need is some margin between the cell and the image.</p>