diegomura / diegomura/react-pdf

Image size / not keeping aspect ratio

Open
#1,612 11 comments 4 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.