From 1d766c067d2a76efe272de0ba71ca5b23ffbf57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20K=C3=BChn?= Date: Thu, 29 Aug 2019 14:35:18 +0000 Subject: [PATCH] [FIX] mail: keep ratio of img in message with inline dimensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, when a message body contains a big image with inline dimensions, the image was stretched. For instance: - `` - on 1080p screen in the discuss app: - max-width for image: 1542px - image ratio: ~ 1,78 - expected height: 867.38px - actual height: 2304px This issue had been fixed[1], but was reintroduced[2]. Note that this fix only works when inline dimensions are set as attr of the `` tag. It won't work with dimensions attached as inline styles (e.g. `