Artemis icon indicating copy to clipboard operation
Artemis copied to clipboard

Images get squished in narrow problem statements

Open heddendorp opened this issue 3 years ago • 3 comments

Describe the bug

image

To Reproduce

Open a problem statement with an image in it and reduce the width

Expected behavior

The image should be resized while keeping it's aspect ratio

Screenshots

Uploading image.png…

What browsers are you seeing the problem on?

Chrome

Additional context

No response

Relevant log output

No response

heddendorp avatar Aug 15 '22 14:08 heddendorp

@heddendorp I can not reproduce the issue, on which page exactly does the image not resize correctly?

ge65cer avatar Aug 30 '22 14:08 ge65cer

@heddendorp I can not reproduce the issue, on which page exactly does the image not resize correctly?

https://artemis.ase.in.tum.de/courses/188/file-upload-exercises/7124/participate/6302734

heddendorp avatar Aug 31 '22 14:08 heddendorp

Thanks for the link, this allowed me to investigate a little further. It looks like the instructor added the image not via Markdown but with a custom HTML tag specifically setting a width and height: <img alt="carbon.png" src="/api/files/markdown/Markdown_xxx.png" width="680" height="311">

Normally, when the width and height are not custom-defined (e.g., the HTML tags are rendered from Markdown), the image is sized correctly. I do not consider this a bug in Artemis and plead to close the issue as wont-fix.

ge65cer avatar Sep 07 '22 09:09 ge65cer