This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Description
Hi,
I've been trying to set the row height and the column width to the exact size in pixels of an image added to the cell, but I can't make it to fit, I've been trying with the examples given here (#182 (comment)), for example setting the column width with:
ws.column(ws.lastUsedCol).setWidth( Math.trunc(((imageSize.width - 11) / 7) * 100 + 0.5) / 100 );
where imageSize.width is the pixels width but still it doesn't fit perfectly the image width, how can I implement this?
Also, how can I center an image in a cell by using the position colOff and rowOff?
Thanks