Answer the question
In order to leave comments, you need to log in
PhpSpreadsheet how to center an image in a cell?
PhpSpreadsheet Tell me how to place an image in a cell in the center?
the picture is smaller than the height of the cell, the cell should have center styles.
'alignment'=>[
'horizontal'=>\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_CENTER,'vertical'=>\PhpOffice\PhpSpreadsheet\Style\Alignment::VERTICAL_CENTER
],
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question