Set row height in pixels according to image height

Topics: Developer Forum, User Forum
Apr 25, 2015 at 12:51 PM

is there a way to set the row height according to the height of an image?

Example: I put an image (320x480 pixel) on D12 and now i want the row #12 height to fit the image height (480 pixel).

The "auto height" doesn't work (ignores image).

Nov 9, 2015 at 6:33 AM
You have to manually set the row height to suit the image height (or perhaps a little larger).
For example, I put images in a cell and set their height to 120, then I make the row height 130.
This way the rows are still sortable. If the image is not completely within the cell, changing row order will cause the images to become orphaned from their parent cell, they will no longer be visually associated with the original row.
You tell PHPExcel the height of the image when you load it so there should be no problem setting the row height similarly.