diegomura / diegomura/react-pdf
Image size / not keeping aspect ratio
Open
bug
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
When i add styles to the I can set up a height but width auto don't work in combination.
```
```
**Expected behavior**
height: 80px
width: auto - so image should be not deformed
So if image is 400x120px (width x height)
Image should have when i set height 267x80px(width x height)
But only height is now 80px and width stay on 400px.
The problem is that is dynamic content so each image could be different.
Contributor guide
Assessment
This issue has not been assessed yet.