Image position - stretching image
See original GitHub issueHello everyone. I have a problem with images using exceljs. If I just run excel file through and save it, images are immediately deformed (stretched). I tried workaround and so I just removed images from original excel file and inserted them with add image. Again stretched. So I tried not to specify cells for image to include, but also other(more specific option):
{tl: { col: 1.2, row: 0.4 }, br: { col: 3.2, row: 0.9 }}
This worked when row number was not decimal. Because the example above didn’t scale the image from 0.4 to 0.9 of the cell, but rather deformed it … Which is weird as the image started the position on 0.4. This for example worked fine:
{tl: { col: 1.2, row: 0.4 }, br: { col: 3.2, row: 1 }}
but any decimal number in br->row does weird things.
I also tried to specify editAs attribute and all its options, but no luck there.
Am I doing something wrong or is it a bug? Is there any workaround where I can specify the place where I want to include image without stretching image?
Thank you for your help!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:22 (10 by maintainers)
Top GitHub Comments
I’m just wondering why @Trynex’s fix isn’t pulled into master. It’s an actual bug that
editAs: 'absolute'
doesn’t actually do what it says.Hi man. I know what you mean, I tried everything with this plugin but it didnt work. So I had to fork this package and fix it. Currently I’m not near PC but tomorrow I will write you how to use my modified version to make pictures scalable any way you want.