exceljs/exceljs

[Bug] Insert Image to Excel returns wrong size

Open

#1,036 opened on Nov 25, 2019

View on GitHub
 (7 comments) (3 reactions) (0 assignees)JavaScript (11,838 stars) (1,534 forks)batch import
help wanted

Description

I have an image that has 191x47 pixels. arubaito

    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.

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

Contributor guide

[Bug] Insert Image to Excel returns wrong size · exceljs/exceljs#1036 | Good First Issue