exceljs / exceljs/exceljs

[Bug] Insert Image to Excel returns wrong size

Open
#1,036 7 comments 3 reactions 0 assignees View on GitHub
help wanted
Dominant language
JavaScript
Stars
15.5k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

I have an image that has `191x47` pixels.
![arubaito](https://user-images.githubusercontent.com/12994069/69518701-90171200-0f9b-11ea-9a1e-210497432195.png)

```js
worksheet.addImage(imageID, {
tl: { col: column, row: row },
ext: { width: size.width, height: size.height }, // width: 191, height: 47
});
```
But when I open excel file, the height was automatically scaled 160%, and 157% with width.

Screen Shot 2019-11-25 at 15 54 10

**So how can I insert the original size of an image to excel?**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.