# Bug OP-16675 - Work package description images scaling issue when exported to PDF

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-16675

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Export / PDF Export |
| Target versions | 16.2.0 |
| Observed in versions |  |
| Sprint | 16.2.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Andrej Sandorf |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Place a very tall image in the description field of a work package.

2.  Export the view to PDF report.

3.  Observe the tall image is not correctly scaled to keep it within the PDF page margins.  Image width appears to be honoured over height.

### What is the buggy behavior?

  - The tall image's lower end spills out over the PDF page margin because the image width appears to be honoured over height.

### What is the expected behavior?

1.  A very tall image should have its height AND width taken into consideration, not just the width.

### 

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/326664/content">

### Environment information

**OpenProject installation type**

  - Packaged installation
    
      - Ubuntu

**OpenProject version**

OpenProject 15.2.1

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [x] Other (Vivaldi)

**Operating System**

- [x] Windows
- [ ] Mac OS X
- [ ] Mobile iOS
- [ ] Mobile Android
- [x] Linux (please specify distro)
- [ ] Chrome OS
- [ ] Other (please specify)

**Language**

*English*
